/**
 * KBHost Dark Theme
 *
 * Based on Twenty Sixteen with WP Dark Mode overrides.
 * Colors extracted from the live kbhost.nl site.
 */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    background-color: #242525;
    color: #dfdedb;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: Consolas, monospace;
    font-weight: 700;
    color: #dfdedb;
    line-height: 1.25;
    margin: 0 0 1em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: #f0a030;
}

p {
    margin: 0 0 1.5em;
}

code, pre, textarea.auto-resize {
    font-family: Consolas, monospace;
}

.article-content code {
    display: inline-block;
    background: #3a3a3a;
    border: 1px solid #555;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.85em;
    white-space: pre-line;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    white-space: inherit;
}

pre, textarea.auto-resize {
    background: #4E6513;
    color: #dfdedb;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #5a7520;
    border-radius: 3px;
    font-size: 0.875rem;
    line-height: 1.6;
    width: 100%;
    resize: vertical;
    outline: none;
}
textarea.auto-resize:focus {
    border-color: #6a8525;
    outline: none;
}

/* ===== Code Block Wrapper ===== */
.code-block-wrapper {
    position: relative;
    margin: 0;
}
.code-block-wrapper textarea.auto-resize {
    margin: 0;
    display: block;
}
.code-block-wrapper.collapsed textarea.auto-resize {
    overflow: hidden;
}
.code-block-wrapper.collapsed {
    cursor: pointer;
}
/* Collapse gap between text and language badge */
.article-content p:has(+ .code-language-badge) {
    margin-bottom: 4px;
}
/* Language badge sits OUTSIDE (before) the wrapper */
.code-language-badge {
    display: block;
    width: fit-content;
    margin: 4px 0 4px auto;
}
/* Copy button sits OUTSIDE (after) the wrapper */
.code-actions {
    margin: 4px 0 1.5em;
}
.copy-btn {
    margin: 0 8px 0 0;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}
.copy-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}
.copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}
/* Collapsed fade hint */
.code-block-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: linear-gradient(transparent, #4E6513);
    pointer-events: none;
    border-radius: 0 0 3px 3px;
}

blockquote {
    margin: 1em 0 1em 10px;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    color: #aaa;
}

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

table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}
table th, table td {
    border: 1px solid #444;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #dfdedb;
}
table th {
    background: #1a1a1a;
    font-weight: bold;
}
table tr:nth-child(even) {
    background: rgba(255,255,255,0.02);
}

/* ===== Layout ===== */
.site-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
#masthead {
    background: #242525;
    border-bottom: none;
}

.site-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1em 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.site-branding .site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 900;
}
.site-branding .site-title a {
    color: var(--accent-color);
    text-decoration: none;
}

.header-ip {
    color: #999;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.9375rem;
    margin-right: 20px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.main-navigation ul li a {
    color: #ccc;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
}
.main-navigation ul li a.nav-active {
    font-weight: 700;
}
.main-navigation ul li a:hover {
    color: var(--accent-color);
}

/* ===== Footer ===== */
#colophon {
    margin-top: 3em;
    padding: 1.5em 7.6923%;
    border-top: none;
    background: #242525;
    text-align: center;
}
.site-title-footer a {
    color: #666;
    font-family: Consolas, monospace;
    font-size: 0.75rem;
}

/* ===== Voting Widget ===== */
.voting-widget {
    float: right;
    font-size: 1rem;
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
}
.vote-btn {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: Consolas, monospace;
    font-size: 0.9375rem;
}
.vote-up {
    color: #4caf50;
}
.vote-down {
    color: #f44336;
    margin-left: 10px;
}

/* ===== Admin Edit Button (on article page) ===== */
.admin-edit-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8125rem;
    font-family: Verdana, Geneva, sans-serif;
    font-weight: 600;
    color: #ccc;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    text-decoration: none;
    margin-right: 12px;
    transition: all 0.15s ease;
}
.admin-edit-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.article-view-count {
    font-size: 0.8125rem;
    color: #888;
    margin-right: 12px;
}

/* ===== Status Badge (article page) ===== */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    vertical-align: middle;
}
.status-private {
    background: rgba(255,255,255,0.1);
    color: #999;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===== Show/Hide Shortcode ===== */
.sh-block {
    margin: 1em 0;
}
.sh-toggle {
    display: inline-block;
    cursor: pointer;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 6px 0;
    user-select: none;
}
.sh-toggle:hover {
    text-decoration: underline;
}
.sh-icon {
    display: inline-block;
    font-size: 0.75rem;
    transition: transform 0.15s ease;
    margin-right: 2px;
}
.sh-toggle.sh-open .sh-icon {
    transform: none;
}
.sh-content {
    margin-top: 4px;
}

/* ===== NO SLEEP Widget ===== */
.nosleep-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    border-radius: 26px;
    transition: 0.3s;
}
.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #4caf50;
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.nosleep-label {
    color: #999;
    font-family: Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 700;
}
.nosleep-dash {
    color: #999;
    font-family: Consolas, monospace;
    font-size: 1.1rem;
}
#nosleep-timer {
    font-family: Consolas, monospace;
    color: #999;
    font-size: 1.1rem;
}

/* ===== Password Generator ===== */
#password-gen-list .password-item {
    font-family: Consolas, monospace;
    font-size: 0.9375rem;
    color: #dfdedb;
    padding: 3px 0;
    letter-spacing: 0.02em;
    cursor: cell;
    transition: color 0.15s ease;
    width: 135px;
}
#password-gen-list .password-item:hover {
    color: #fff;
}
#password-gen-list .password-item.password-copied {
    color: #e58c17;
}
#password-gen-list .password-item.enclosed-loading {
    color: #888;
    cursor: wait;
}
#password-gen-list .password-item.enclosed-copied {
    color: #28a745;
}
#password-gen-list .password-item.enclosed-error {
    color: #f44336;
}
.widget-refresh-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--accent-color);
}

/* ===== 404 ===== */
.error-404 {
    text-align: center;
    padding: 3em 0;
}
.error-404 h1 {
    font-size: 2rem;
    color: #dfdedb;
}
.error-404 p {
    color: #999;
}

/* ===== Search field focus & placeholder ===== */
.kbe_search_field input[type="text"]:focus {
    color: rgb(168, 160, 149);
    border-color: var(--accent-color);
    outline: none;
}
.kbe_search_field input[type="text"]::placeholder {
    color: #888;
}

/* ===== KBE Live Search Result ===== */
#kbe-live-search-result {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    z-index: 9999;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--accent-color);
    border-top: none;
}
#kbe-live-search-result li {
    border-bottom: 1px solid #333;
}
#kbe-live-search-result li a {
    display: block;
    padding: 10px 16px;
    color: #dfdedb;
    text-decoration: none;
    font-size: 0.875rem;
}
#kbe-live-search-result li a:hover {
    background: #333;
    color: #fff;
}
.kbe-live-search-no-result {
    display: block;
    padding: 10px 16px;
    color: #888;
    font-size: 0.875rem;
}

/* ===== Password Protected ===== */
.password-prompt {
    max-width: 400px;
    margin: 2em 0;
}
.password-prompt p {
    margin-bottom: 1em;
    color: #999;
}
.password-prompt .password-error {
    color: #f44336;
}
.password-prompt form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.password-prompt input[type="password"] {
    flex: 1;
    padding: 8px 12px;
    background: #2a2a3e;
    border: 1px solid #444;
    color: #dfdedb;
    border-radius: 3px;
    font-size: 0.9375rem;
}
.password-prompt input[type="password"]:focus {
    border-color: var(--accent-color);
    outline: none;
}
.password-prompt .btn-primary {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-family: Verdana, Geneva, sans-serif;
    background: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.password-prompt .btn-primary:hover {
    background: #f0a030;
    border-color: #f0a030;
}

/* ===== Category Article Meta ===== */
.article-meta {
    font-size: 0.8125rem;
    margin-left: 8px;
    color: #888;
}
.article-meta .meta-views {
    color: #888;
}
.article-meta .meta-vote-up {
    color: #4caf50;
    margin-left: 6px;
}
.article-meta .meta-vote-down {
    color: #f44336;
    margin-left: 4px;
}

/* ===== DNS Lookup: Header Form ===== */
/* ===== Header: No Sleep ===== */
.header-nosleep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}
.header-toggle-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}
.header-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.header-toggle-slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.header-toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.header-toggle-switch input:checked + .header-toggle-slider {
    background: #4caf50;
}
.header-toggle-switch input:checked + .header-toggle-slider::before {
    transform: translateX(16px);
}
.header-nosleep-label {
    color: #ccc;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.85rem;
    white-space: nowrap;
}
.header-nosleep-timer {
    color: #ccc;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 0.85rem;
}

/* ===== Header: DNS Lookup ===== */
.header-dns {
    margin-right: 12px;
}
.header-dns form {
    display: flex;
    gap: 6px;
    align-items: center;
}
.header-dns input[type="text"] {
    width: 225px;
    padding: 6px 10px;
    font-family: Consolas, monospace;
    font-size: 13px;
    background: #242525;
    border: 1px solid #444;
    color: #dfdedb;
    border-radius: 3px;
    outline: none;
}
.header-dns input[type="text"]:focus {
    border-color: var(--accent-color);
}
.header-dns input[type="text"]::placeholder {
    color: #666;
}
.header-dns select {
    padding: 6px 8px;
    font-family: Consolas, monospace;
    font-size: 12px;
    background: #242525;
    border: 1px solid #444;
    color: #dfdedb;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
}
.header-dns select option {
    background: #242525;
    color: #dfdedb;
}
.header-dns button {
    padding: 6px 14px;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.header-dns button:hover {
    background: #f0a030;
}

/* ===== DNS Lookup: Page Form ===== */
.dns-page-form {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}
.dns-page-form input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    font-family: Consolas, monospace;
    font-size: 15px;
    background: #242525;
    border: 1px solid #444;
    color: #dfdedb;
    border-radius: 3px;
    outline: none;
}
.dns-page-form input[type="text"]:focus {
    border-color: var(--accent-color);
}
.dns-page-form select {
    padding: 10px 12px;
    font-family: Consolas, monospace;
    font-size: 13px;
    background: #242525;
    border: 1px solid #444;
    color: #dfdedb;
    border-radius: 3px;
    cursor: pointer;
}
.dns-page-form select option {
    background: #242525;
    color: #dfdedb;
}
.dns-page-form button {
    padding: 10px 24px;
    font-family: Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.dns-page-form button:hover {
    background: #f0a030;
}

/* ===== DNS Lookup: Results Page ===== */
.dns-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.dns-title {
    font-family: Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}
.dns-title span {
    color: #dfdedb;
    font-weight: 400;
}
.dns-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dns-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
}
.dns-badge-ok {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.dns-badge-missing {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}
.dns-badge-warn {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.dns-validation {
    margin: 6px 0 12px 28px;
    padding: 0;
    list-style: disc;
    font-size: 13px;
}
.dns-validation li {
    margin: 3px 0;
}
.dns-validation-error,
li.dns-validation-error {
    color: #f44336;
}
.dns-validation-warn,
li.dns-validation-warn {
    color: #ff9800;
}
p.dns-validation-error {
    margin: 6px 0;
    font-size: 13px;
}

.dns-type-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.dns-type-links a {
    display: inline-block;
    padding: 4px 12px;
    font-family: Consolas, monospace;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 3px;
    background: transparent;
}
.dns-type-links a:hover {
    color: #dfdedb;
    border-color: #555;
}
.dns-type-links a.active,
.dns-type-links a.active:visited,
.dns-type-links a.active:hover {
    color: #fff !important;
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.dns-section {
    margin-bottom: 25px;
    font-family: Consolas, monospace;
    font-size: 13px;
}
.dns-section h2 {
    font-family: Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}
.dns-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Consolas, monospace;
    font-size: 13px;
}
.dns-table th {
    text-align: left;
    background: #1a1a1a;
    padding: 7px 12px;
    border: 1px solid #333;
    color: #888;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dns-table td {
    padding: 7px 12px;
    border: 1px solid #333;
    color: #dfdedb;
    word-break: break-all;
}
.dns-table tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}
.dns-table .ip { color: #7ec8e3; }
a.ip-link { color: #7ec8e3; text-decoration: none; font-family: Consolas, monospace; font-size: 13px; }
a.ip-link:hover { text-decoration: underline; }
.dns-table .host { color: #c5c5c5; }
.dns-table .ttl { color: #666; white-space: nowrap; text-align: right; }
.dns-table .priority { color: var(--accent-color); font-weight: 600; text-align: center; }
.dns-table .record-value { color: #a8d8a8; }

/* Vertical key-value table (Registrant info) */
.dns-table-vertical th {
    width: 140px;
    white-space: nowrap;
    font-weight: 600;
}
.dns-table-vertical td {
    width: auto;
}

/* Column sizing per DNS table type */
.dns-cols-ns { table-layout: fixed; }
.dns-cols-ns .col-name { width: 550px; }
.dns-cols-ns .col-ttl { width: 65px; }

.dns-cols-mx { table-layout: fixed; }
.dns-cols-mx .col-pri { width: 75px; text-align: center; }
.dns-cols-mx .col-name { width: 474px; }
.dns-cols-mx .col-ttl { width: 65px; }

.dns-cols-a { table-layout: fixed; }
.dns-cols-a .col-name { width: 550px; }
.dns-cols-a .col-ip { width: 450px; }
.dns-cols-a .col-ttl { width: 65px; }

.dns-cols-www { table-layout: fixed; }
.dns-cols-www .col-name { width: 550px; }
.dns-cols-www .col-ttl { width: 65px; }

.dns-cols-aaaa { table-layout: fixed; }
.dns-cols-aaaa .col-name { width: 550px; }
.dns-cols-aaaa .col-ttl { width: 65px; }

.dns-chain {
    font-family: Consolas, monospace;
    font-size: 13px;
    padding: 10px 14px;
    background: #242525;
    border: 1px solid #333;
    border-radius: 3px;
}
.dns-chain .arrow { color: #666; }
.dns-chain .label { color: #888; font-size: 11px; text-transform: uppercase; }
.dns-chain .ip { color: #7ec8e3; }

.dns-record-code {
    font-family: Consolas, monospace;
    font-size: 13px;
    color: #a8d8a8;
}

.dns-empty {
    color: #555;
    font-style: italic;
    font-size: 13px;
}

.dns-error {
    color: #f44336;
    padding: 12px;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 3px;
    margin-bottom: 20px;
}

/* ===== WHOIS ===== */
.whois-label {
    color: #888;
    width: 140px;
    font-weight: 600;
}
.whois-status-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.whois-raw-pre {
    background: #242525;
    padding: 15px;
    border: 1px solid #333;
    border-radius: 3px;
    overflow-x: auto;
    font-size: 12px;
    color: #999;
    max-height: 500px;
    overflow-y: auto;
}

/* ===== Responsive ===== */
@media screen and (max-width: 985px) {
    .site-inner {
        padding: 0 4%;
    }
    .site-header-main {
        padding: 0.75em 4%;
    }
}

@media screen and (max-width: 640px) {
    .site-header-main {
        flex-wrap: wrap;
        align-items: center;
    }
    .site-branding {
        width: 100%;
    }
    .header-dns {
        width: 100%;
        order: 0;
        margin-right: 0;
    }
    .header-dns form {
        width: 100%;
    }
    .header-dns input[type="text"] {
        flex: 1;
        width: auto;
    }
    .main-navigation {
        width: 100%;
        order: 1;
    }
    .main-navigation ul {
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }
    .dns-page-form {
        flex-direction: column;
    }
    .dns-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dns-title {
        font-size: 15px !important;
    }

    /* Responsive tables: stack cells vertically */
    .dns-table,
    .dns-table thead,
    .dns-table tbody,
    .dns-table tr,
    .dns-table th,
    .dns-table td {
        display: block;
        width: 100%;
    }
    .dns-table thead {
        display: none;
    }
    .dns-table tr {
        margin-bottom: 10px;
        border: 1px solid #333;
        border-radius: 3px;
        overflow: hidden;
    }
    .dns-table td {
        padding: 6px 10px;
        text-align: left;
        border: none;
        border-bottom: 1px solid #2a2a2a;
        position: relative;
        padding-left: 110px;
        min-height: 30px;
        word-break: break-word;
    }
    .dns-table td:last-child {
        border-bottom: none;
    }
    .dns-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 6px;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        color: #888;
        letter-spacing: 0.5px;
        width: 90px;
    }
    .dns-table td.ttl {
        text-align: left;
    }
    .dns-table .priority {
        text-align: left;
    }
    .dns-table td[style*="nowrap"] {
        white-space: normal !important;
    }

    /* Vertical table: keep th+td side by side on mobile */
    .dns-table-vertical tr {
        display: flex;
        margin-bottom: 0;
        border: none;
        border-bottom: 1px solid #2a2a2a;
        border-radius: 0;
    }
    .dns-table-vertical th {
        display: block;
        width: 110px;
        min-width: 110px;
        padding: 6px 10px;
        font-size: 11px;
    }
    .dns-table-vertical td {
        display: block;
        padding: 6px 10px;
        padding-left: 10px;
        min-height: auto;
    }
    .dns-table-vertical td::before {
        display: none;
    }

    .dns-type-links a {
        padding: 3px 8px;
        font-size: 11px;
    }
}
