@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,900");
@import url("/assets/css/fontawesome-all.min.css");

.icon {
    text-decoration: none;
    position: relative;
    text-decoration: none;
}

.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

.icon:before {
    line-height: inherit;
}

.icon > .label {
    display: none;
}

.icon.solid:before {
    font-weight: 900;
}

.icon.brands:before {
    font-family: 'Font Awesome 5 Brands';
}

table {
    background-color: antiquewhite;
    border-spacing: 2px;
    border-collapse: separate;
    table-layout: fixed;   /* ← REQUIRED */
}
.pedigree-container {
    width: max-content;    /* ← IMPORTANT for Safari */
}
td.dog-cell {
    background-color: #FFFAFA;
}
td.dog-sire {
    border-top-color: black;
    border-top-style:solid;
    border-left-color: cornflowerblue;
    border-left-width: 10px;
    border-left-style: solid;  /* Add this */
}
td.dog-dam {
    border-top-color: black;
    border-top-style:dashed;
    border-left-color: pink;
    border-left-width: 10px;
    border-left-style: solid;  /* Add this */
}
td {
    font-size: small;
}
.name {
    font-weight: bold;
    white-space: nowrap;
    text-align: center;
}
.call {
    color: #fff0f0;
    font-size: large;
    font-weight: bolder;
    text-shadow: 1px 1px white;
    text-align: right;
    margin-top: -1em;
}
.dog-id {
    font-size: x-small;
    white-space: nowrap;
    text-align: center;
    font-style:italic;
}
.dog-icons {
    display: flex;
    align-items: center; /* vertical */
    justify-content: center; /* horizontal */
    gap: 4px;  
}
.dog-icons i.fa-award {
   color: gold;
}
.dog-icons i.fa-ice-cream {
   color: #f82fab;
   text-shadow: 2.5px 0.5px #3ccbd6;

}
.dog-icons i.fa-car-alt {
   color: purple;
}
.dog-icons img.country-flag {
    max-height: 8px;
}

.dog-icons i.fa-globe,
.dog-icons i.fa-globe a {
    color: #d3d3d3
}

.dog-icons i.fa-sitemap,
.dog-icons i.fa-sitemap a {
    color: #fff0f0
}
.dog-icons i.fa-sitemap:hover {
    color: pink
}

.tooltip {
    position: relative;
    display: inline-flex;
}

.tooltip-image {
    visibility: hidden;
    position: fixed;
    max-height: 30vh;
    max-width: 30vw;
    width: auto;
    height: auto;
    background: black;
    padding: 4px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.prefix-postfix {
    font-size: x-small;
    display: flex;
    justify-content: space-between; /* pushes left and right apart */
    gap: 20px;
    white-space: nowrap;
}
.bottom-row {
    font-size: 0.9rem;
    color: #555;
}

.dog-icons i.fa-infinity {
    font-size: 0.85em;
    opacity: 0.9;
}

@keyframes coi-pulse {
    0%   { background-color: inherit; }
    40%  { background-color: rgba(255, 200, 0, 0.45); }
    100% { background-color: rgba(255, 200, 0, 0.2); }
}
td.coi-flash {
    animation: coi-pulse 0.4s ease-out forwards;
    outline: 2px solid rgba(255, 180, 0, 0.7);
}

.coi-incomplete {
    color: #999;
    font-style: italic;
    font-size: 11px;
}
.coi-incomplete i {
    color: #e08000;
}

.dog-id.sub-reg {
    color: #888;
    font-style: italic;
}
.coi-row {
    margin-top: 6px;
    font-size: 11px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 5px;
}
.coi-value {
    font-weight: 700;
    font-size: 12px;
}
.coi-ancestors {
    margin-top: 3px;
    color: #666;
    line-height: 1.5;
}
.coi-ancestor-row {
    padding-left: 8px;
    border-left: 2px solid #ddd;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
