.smm-unit-profile,
.smm-units-directory {
    --smm-border: #d6d3cc;
    --smm-dark: #2f3b31;
    --smm-accent: #7a4e22;
    --smm-soft: #f7f4ed;
    color: #252525;
}
.smm-unit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.smm-unit-badges span,
.smm-source-type {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--smm-dark);
    color: #fff;
    font-size: .84em;
    font-weight: 700;
}
.smm-unit-cover {
    margin: 0 0 24px;
}
.smm-unit-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.smm-unit-section {
    margin: 0 0 28px;
    padding: 22px;
    border: 1px solid var(--smm-border);
    border-radius: 5px;
    background: #fff;
}
.smm-unit-section > h2 {
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--smm-accent);
    font-size: 1.45em;
}
.smm-unit-section h3 { margin: 0 0 10px; }
.smm-unit-section p:last-child { margin-bottom: 0; }
.smm-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--smm-border);
    border: 1px solid var(--smm-border);
}
.smm-info-grid > div {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) 1.3fr;
    gap: 12px;
    padding: 12px;
    background: #fff;
}
.smm-info-grid strong { color: var(--smm-dark); }
.smm-relation-block + .smm-relation-block { margin-top: 20px; }
.smm-relation-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.smm-relation-card {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--smm-border);
    border-left: 4px solid var(--smm-accent);
    background: var(--smm-soft);
    text-decoration: none;
    font-weight: 700;
}
.smm-relation-card.is-disabled { color: #555; font-weight: 600; }
.smm-table-wrap { overflow-x: auto; }
.smm-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.smm-data-table th,
.smm-data-table td {
    padding: 10px;
    border: 1px solid var(--smm-border);
    vertical-align: top;
    text-align: left;
}
.smm-data-table th {
    background: var(--smm-dark);
    color: #fff;
}
.smm-data-table tbody tr:nth-child(even) { background: var(--smm-soft); }
.smm-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.smm-text-card {
    padding: 16px;
    background: var(--smm-soft);
    border: 1px solid var(--smm-border);
}
.smm-map-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}
.smm-map-link a,
.smm-card-link {
    display: inline-block;
    padding: 9px 14px;
    background: var(--smm-accent);
    color: #fff !important;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 700;
}
.smm-unit-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.smm-unit-gallery figure {
    margin: 0;
    border: 1px solid var(--smm-border);
    background: var(--smm-soft);
}
.smm-unit-gallery img { display: block; width: 100%; height: auto; }
.smm-unit-gallery figcaption { padding: 10px 12px; }
.smm-unit-gallery figcaption small { display: block; margin-top: 5px; color: #666; }
.smm-source-list { margin: 0 0 0 22px; }
.smm-source-list li { margin-bottom: 10px; }
.smm-source-type { margin-right: 8px; font-size: .75em; }
.smm-empty {
    padding: 22px;
    border: 1px dashed var(--smm-border);
    background: var(--smm-soft);
    text-align: center;
}
.smm-directory-group { margin-bottom: 30px; }
.smm-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.smm-directory-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--smm-border);
    border-top: 4px solid var(--smm-accent);
    background: #fff;
}
.smm-directory-card h3 { margin: 0 0 10px; }
.smm-directory-card .smm-card-link { margin-top: auto; align-self: flex-start; }
.smm-card-parent { color: #666; font-size: .9em; }
@media (max-width: 850px) {
    .smm-info-grid,
    .smm-relation-list,
    .smm-two-columns,
    .smm-unit-gallery,
    .smm-directory-grid { grid-template-columns: 1fr; }
    .smm-unit-section { padding: 16px; }
}


/* v1.7.3 - Dikey birlik hiyerarşisi */
.smm-units-tree { margin: 0; }
.smm-tree-root,
.smm-tree-children { list-style: none; margin: 0; padding: 0; }
.smm-tree-item { margin: 0 0 8px; }
.smm-tree-details > summary,
.smm-tree-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--smm-border);
    border-left: 4px solid var(--smm-accent);
    background: #fff;
}
.smm-tree-details > summary { cursor: pointer; font-weight: 700; }
.smm-tree-details > summary::marker { color: var(--smm-accent); }
.smm-tree-link { color: inherit; text-decoration: none; font-weight: 700; }
.smm-tree-link:hover { text-decoration: underline; }
.smm-tree-level {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--smm-soft);
    color: #666;
    font-size: .78em;
    font-weight: 600;
}
.smm-tree-children {
    margin: 8px 0 2px 26px;
    padding-left: 14px;
    border-left: 2px solid var(--smm-border);
}
.smm-independent-units { margin-top: 28px; }
.smm-independent-units > h2 { margin: 0 0 12px; }
@media (max-width: 650px) {
    .smm-tree-children { margin-left: 12px; padding-left: 10px; }
    .smm-tree-level { display: none; }
}

/* v1.7.4 - Birlikler > Türk/Yunan > Tümen > Alay ve tema çakışması düzeltmesi */
.smm-units-directory,
.smm-units-directory * { box-sizing: border-box; }
.smm-units-directory .smm-tree-root,
.smm-units-directory .smm-tree-children,
.smm-units-directory .smm-tree-item {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}
.smm-units-directory .smm-tree-root,
.smm-units-directory .smm-tree-children {
    position: static !important;
    background: transparent !important;
}
.smm-units-directory .smm-tree-item { clear: both !important; }
.smm-units-directory .smm-tree-details,
.smm-units-directory .smm-tree-row,
.smm-units-directory .smm-tree-details > summary { width: 100% !important; }
.smm-side-section { margin: 0 0 14px; }
.smm-side-details { border: 1px solid var(--smm-border); background: #fff; }
.smm-side-title {
    display: block !important;
    width: 100% !important;
    padding: 13px 16px;
    cursor: pointer;
    font-size: 1.18em;
    font-weight: 700;
    background: var(--smm-dark);
    color: #fff;
}
.smm-side-title::marker { color: #fff; }
.smm-side-content { padding: 14px; }
.smm-side-content > .smm-tree-root > .smm-tree-item { margin-bottom: 9px; }
.smm-independent-units > h3 { margin: 22px 0 10px; font-size: 1.05em; }


/* v1.7.6 - Ana sayfa: Birlikler > Türk/Yunan > birlik hiyerarşisi */
.smm-unit-side-index {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.smm-side-index-link {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-height: 58px;
    margin: 0 0 12px !important;
    padding: 14px 16px !important;
    border: 1px solid var(--smm-border);
    border-left: 5px solid var(--smm-accent);
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    box-sizing: border-box;
}
.smm-side-index-link strong { font-size: 1.12em; }
.smm-side-index-link span { color: #666; font-size: .88em; }
.smm-side-index-link:hover { background: var(--smm-soft); }
@media (max-width: 650px) {
    .smm-side-index-link { align-items: flex-start; flex-direction: column; gap: 4px; }
}


/* v2.0.7 - 23 Ağustos-13 Eylül 1921: 22 günlük yer ve birlik takip tabloları */
.smm-daily-section{margin-top:20px}.smm-daily-note{margin:0 0 12px;color:#5f6368;font-size:13px}
.smm-daily-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #ddd}
.smm-daily-table{width:100%;min-width:1100px;border-collapse:collapse;font-size:13px;background:#fff}
.smm-daily-table th,.smm-daily-table td{border:1px solid #ddd;padding:8px 9px;vertical-align:top;line-height:1.4}
.smm-daily-table th{background:#f3f0ea;text-align:left;white-space:nowrap}
.smm-daily-table tr:nth-child(even) td{background:#fbfaf7}.smm-daily-table a{text-decoration:underline}
.smm-daily-table small{display:block;margin-top:4px;color:#777;font-size:11px}.smm-daily-event-links{margin-top:5px;font-size:11px}
@media(max-width:760px){.smm-daily-table{font-size:12px}.smm-daily-table th,.smm-daily-table td{padding:7px}}
