/* ============================================
   DS | GUIDELINES | TYPO
   ============================================ */

/* Font preview */
.ds-typo-font-preview {
    background:    var(--ds-color-background-subtle);
    border:        1px solid var(--ds-color-border-subtle);
    border-radius: 8px;
    padding:       var(--ds-space-32);
    margin-bottom: var(--ds-space-16);
}
.ds-typo-font-preview__sample {
    font-family:   var(--ds-font-family);
    font-size:     var(--ds-font-size-large);
    color:         var(--ds-color-text-primary);
    line-height:   1.8;
    margin-bottom: var(--ds-space-16);
}
.ds-typo-font-preview__meta {
    display:     flex;
    align-items: center;
    gap:         var(--ds-space-24);
}
.ds-typo-font-preview__name {
    font-size:   var(--ds-font-size-small);
    font-weight: 600;
    color:       var(--ds-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ds-typo-font-preview__link {
    font-size:   var(--ds-font-size-small);
    color:       var(--ds-color-action-primary);
    text-decoration: none;
}
.ds-typo-font-preview__link:hover {
    text-decoration: underline;
}

/* Scale */
.ds-typo-scale {
    display:        flex;
    flex-direction: column;
    gap:            var(--ds-space-4);
}
.ds-typo-scale__item {
    display:       grid;
    grid-template-columns: 280px 1fr;
    align-items:   center;
    gap:           var(--ds-space-24);
    padding:       var(--ds-space-16) var(--ds-space-24);
    background:    var(--ds-color-background-default);
    border:        1px solid var(--ds-color-border-subtle);
    border-radius: 8px;
}
.ds-typo-scale__meta {
    display:        flex;
    flex-direction: column;
    gap:            var(--ds-space-4);
}
.ds-typo-scale__token {
    font-size:   var(--ds-font-size-small);
    color:       var(--ds-color-action-primary);
    background:  var(--ds-color-action-primary-light);
    padding:     2px var(--ds-space-8);
    border-radius: 4px;
    width:       fit-content;
}
.ds-typo-scale__size {
    font-size:   var(--ds-font-size-small);
    font-weight: 600;
    color:       var(--ds-color-text-primary);
}
.ds-typo-scale__usage {
    font-size: var(--ds-font-size-small);
    color:     var(--ds-color-text-muted);
}
.ds-typo-scale__tag {
    font-size:     var(--ds-font-size-small);
    color:         var(--ds-color-feedback-info);
    background:    var(--ds-color-feedback-info-light);
    padding:       2px var(--ds-space-8);
    border-radius: 4px;
    width:         fit-content;
}
/* Previews */
.ds-typo-scale__preview {
    font-family: var(--ds-font-family);
    color:       var(--ds-color-text-primary);
}
.ds-typo-scale__preview--heading { font-size: var(--ds-font-size-heading); font-weight: 700; }
.ds-typo-scale__preview--title   { font-size: var(--ds-font-size-title);   font-weight: 700; }
.ds-typo-scale__preview--large   { font-size: var(--ds-font-size-large);   font-weight: 400; }
.ds-typo-scale__preview--body    { font-size: var(--ds-font-size-body);    font-weight: 400; }
.ds-typo-scale__preview--small   { font-size: var(--ds-font-size-small);   font-weight: 400; }

/* Weights */
.ds-typo-weights {
    display:        flex;
    flex-direction: column;
    gap:            var(--ds-space-4);
}
.ds-typo-weight {
    display:       grid;
    grid-template-columns: 160px 1fr 200px;
    align-items:   center;
    gap:           var(--ds-space-24);
    padding:       var(--ds-space-16) var(--ds-space-24);
    background:    var(--ds-color-background-default);
    border:        1px solid var(--ds-color-border-subtle);
    border-radius: 8px;
}
.ds-typo-weight__label {
    font-size:   var(--ds-font-size-small);
    font-weight: 600;
    color:       var(--ds-color-text-muted);
    font-family: monospace;
}
.ds-typo-weight__sample {
    font-family: var(--ds-font-family);
    font-size:   var(--ds-font-size-body);
    color:       var(--ds-color-text-primary);
}
.ds-typo-weight__sample--400 { font-weight: 400; }
.ds-typo-weight__sample--600 { font-weight: 600; }
.ds-typo-weight__sample--700 { font-weight: 700; }
.ds-typo-weight__usage {
    font-size: var(--ds-font-size-small);
    color:     var(--ds-color-text-muted);
}

/* ============================================
   DS | GUIDELINES | DO & DON'T
   ============================================ */
.ds-dodonts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ds-space-24);
}

.ds-dodont {
    border-radius: 8px;
    overflow:      hidden;
    border:        1px solid var(--ds-color-border-subtle);
}

/* Header */
.ds-dodont__header {
    display:     flex;
    align-items: center;
    gap:         var(--ds-space-8);
    padding:     var(--ds-space-16) var(--ds-space-24);
    font-weight: 700;
    font-size:   var(--ds-font-size-body);
}
.ds-dodont__header-icon {
    width:         28px;
    height:        28px;
    border-radius: 50%;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     var(--ds-font-size-large);
    flex-shrink:   0;
}
.ds-dodont__item-icon svg,
.ds-dodont__header-icon svg {
    width:  16px;
    height: 16px;
}
.ds-dodont--do .ds-dodont__header {
    background: #1e7e34;
    color:      #ffffff;
}
.ds-dodont--do .ds-dodont__header-icon {
    background: rgba(255, 255, 255, 0.2);
}
.ds-dodont--dont .ds-dodont__header {
    background: #a71d2a;
    color:      #ffffff;
}
.ds-dodont--dont .ds-dodont__header-icon {
    background: rgba(255, 255, 255, 0.2);
}

/* Body */
.ds-dodont__body {
    padding: var(--ds-space-24);
    background: var(--ds-color-background-default);
}

/* Items */
.ds-dodont__list {
    list-style:     none;
    padding:        0;
    margin:         0;
    display:        flex;
    flex-direction: column;
    gap:            var(--ds-space-16);
}
.ds-dodont__item {
    display:     flex;
    align-items: flex-start;
    gap:         var(--ds-space-8);
    font-size:   var(--ds-font-size-body);
    color:       var(--ds-color-text-secondary);
    line-height: 1.5;
}
.ds-dodont__item-icon {
    width:         20px;
    height:        20px;
    border-radius: 50%;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     var(--ds-font-size-small);
    font-weight:   700;
    flex-shrink:   0;
    margin-top:    1px;
}
.ds-dodont--do .ds-dodont__item-icon {
    background: var(--ds-color-feedback-success-light);
    color:      var(--ds-color-feedback-success);
}
.ds-dodont--dont .ds-dodont__item-icon {
    background: var(--ds-color-feedback-error-light);
    color:      var(--ds-color-feedback-error);
}

/* ============================================
   DS | GUIDELINES | INFO BOX
   ============================================ */
.ds-guideline-info {
    display:       flex;
    align-items:   flex-start;
    gap:           var(--ds-space-16);
    background:    var(--ds-color-feedback-info-light);
    border-left:   4px solid var(--ds-color-feedback-info);
    border-radius: 0 6px 6px 0;
    padding:       var(--ds-space-16) var(--ds-space-24);
    margin-top:    var(--ds-space-24);
}
.ds-guideline-info p {
    margin:      0;
    font-size:   var(--ds-font-size-body);
    color:       var(--ds-color-text-secondary);
    line-height: 1.6;
}
.ds-guideline-info code {
    background:    var(--ds-color-background-subtle);
    border:        1px solid var(--ds-color-border-default);
    padding:       1px var(--ds-space-8);
    border-radius: 4px;
    font-size:     var(--ds-font-size-small);
    color:         var(--ds-color-action-primary);
}
.ds-guideline-info__icon {
    display:     flex;
    align-items: center;
    flex-shrink: 0;
    margin-top:  2px;
    color:       var(--ds-color-feedback-info);
    font-style:  normal;
}
.ds-guideline-info__icon svg {
    width:  18px;
    height: 18px;
}

/* ============================================
   DS | GUIDELINES | RÈGLES
   ============================================ */
.ds-rule {
    display:       flex;
    align-items:   flex-start;
    gap:           var(--ds-space-16);
    padding:       var(--ds-space-16) var(--ds-space-24);
    background:    var(--ds-color-background-default);
    border:        1px solid var(--ds-color-border-subtle);
    border-left:   4px solid var(--ds-color-action-primary);
    border-radius: 0 8px 8px 0;
    height:        100%;
}
.ds-rule__badge {
    display:       inline-flex;
    align-items:   center;
    padding:       2px var(--ds-space-8);
    background:    var(--ds-color-action-primary-light);
    color:         var(--ds-color-action-primary);
    border-radius: 4px;
    font-size:     var(--ds-font-size-small);
    font-weight:   600;
    white-space:   nowrap;
    flex-shrink:   0;
    margin-top:    2px;
}
.ds-rule__text {
    margin:      0;
    font-size:   var(--ds-font-size-body);
    color:       var(--ds-color-text-secondary);
    line-height: 1.6;
}
.ds-rule__text code {
    background:    var(--ds-color-background-subtle);
    border:        1px solid var(--ds-color-border-default);
    padding:       1px var(--ds-space-8);
    border-radius: 4px;
    font-size:     var(--ds-font-size-small);
    color:         var(--ds-color-action-primary);
}