
/* ==========================================================
   PEDIGREE POINT SCRIPTS
   Modern stylesheet for iframe embedding
   ========================================================== */

:root {
    --pp-yellow: #FFEE58;
    --pp-yellow-hover: #F5E34B;
    --pp-text: #30343B;
    --pp-muted: #68717D;
    --pp-border: #DDE2E7;
    --pp-surface: #FFFFFF;
    --pp-background: #F7F8FA;
    --pp-soft: #F0F2F5;
    --pp-link: #315F83;
    --pp-link-hover: #21435F;
    --pp-radius: 7px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    min-width: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: var(--pp-text);
    background-color: var(--pp-background);
    text-align: left;
}

/* Main iframe content */
div.container {
    width: 100%;
    max-width: 1500px;
    margin: 0;
    padding: 24px 3em 36px;
    color: var(--pp-text);
    text-align: left;
}

/* Typography */
h1 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
}

h1.topofpage {
    height: auto;
    min-height: 0;
}

h2 {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

h4 {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

h5 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
}

p {
    margin: 0 0 12px;
}

a {
    color: var(--pp-link);
    text-decoration: none;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--pp-link-hover);
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6D7782;
    outline-offset: 2px;
}

p.attribution {
    font-size: 11px;
    color: var(--pp-muted);
}

/* ==========================================================
   SEARCH FORMS AND INPUTS
   ========================================================== */

.form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    color: var(--pp-text);
    background-color: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 5px;
    box-shadow: none;
    text-align: left;
}

.form-control:focus {
    border-color: #929BA5;
    outline: 2px solid rgba(48, 52, 59, 0.10);
    outline-offset: 1px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #30343B;
    vertical-align: middle;
}

label {
    text-align: left;
}

.form-inline,
.navbar-form,
.form-inline *,
.navbar-form * {
    text-align: left;
}

.form-inline {
    padding: 16px;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
}

.form-inline .form-control,
.navbar-form .form-control {
    display: inline-block;
    width: auto;
    max-width: 100%;
    vertical-align: middle;
}

/* Search and action buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-height: 36px;
    padding: 8px 14px;
    margin: 0 6px 6px 0;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid var(--pp-border);
    border-radius: 5px;
    transition: background-color 140ms ease,
                border-color 140ms ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-action,
.btn-link {
    color: #242424;
    background-color: var(--pp-yellow);
    border-color: var(--pp-yellow);
}

.btn-action:hover,
.btn-link:hover {
    color: #242424;
    background-color: var(--pp-yellow-hover);
    border-color: var(--pp-yellow-hover);
}

.btn-sub {
    color: var(--pp-text);
    background-color: var(--pp-surface);
    border-color: var(--pp-border);
}

.btn-sub:hover {
    background-color: var(--pp-soft);
}

.btn-sm {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.4;
}

/* Pedigree Point custom buttons */
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 36px;
    padding: 8px 14px;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 5px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.pp-btn:hover {
    background: var(--pp-soft);
    text-decoration: none;
}

/* ==========================================================
   SEARCH AND INPUT TABLES
   ========================================================== */

table.form-table,
table.search,
table.input {
    width: 100%;
    max-width: 800px;
    margin: 0 0 20px;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--pp-radius);
    overflow: hidden;
    text-align: left;
}

table.form-table .form-control,
table.search .form-control,
table.input .form-control {
    width: 100%;
    max-width: 100%;
}

table.form-table td,
table.form-table th,
table.search td,
table.search th,
table.input td,
table.input th {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--pp-border);
    text-align: left;
    vertical-align: top;
}

table.form-table tr:last-child td,
table.search tr:last-child td,
table.input tr:last-child td {
    border-bottom: 0;
}

table.input td:first-child {
    width: 180px;
    background-color: var(--pp-soft);
    font-weight: 600;
}

td.fieldvalue {
    width: auto;
}

table.advanced th {
    padding: 10px 12px;
    background: var(--pp-soft);
    font-weight: 600;
    text-align: left;
}

/* ==========================================================
   REPORT TABLES
   ========================================================== */

table.report {
    width: 100%;
    margin: 0 0 20px;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-collapse: collapse;
    text-align: left;
}

table.report tbody > tr td {
    padding: 8px 10px;
    border: 1px solid var(--pp-border);
    text-align: left;
    vertical-align: top;
}

td.reportheader {
    height: 60px;
    position: relative;
}

div.reportname {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
}

div.printable {
    position: absolute;
    top: 4px;
    right: 10px;
}

/* ==========================================================
   SEARCH RESULTS
   ========================================================== */

table.result {
    width: 100%;
    margin: 16px 0 24px;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-collapse: collapse;
    text-align: left;
}

table.result th {
    padding: 10px 12px;
    color: var(--pp-text);
    background: var(--pp-soft);
    border: 1px solid var(--pp-border);
    font-weight: 700;
    text-align: left;
}

table.result td {
    padding: 9px 12px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    text-align: left;
    vertical-align: top;
}

table.result tr:nth-of-type(even) td {
    background: #FAFBFC;
}

tr.result td {
    padding: 9px 12px;
}

tr.altresult,
tr.altresult td {
    background-color: #F4F6F8;
}

td.subject {
    height: 60px;
    background-color: #FFF9C4;
}

span.resultdetails {
    color: #32734B;
    font-size: 12px;
}

span.resultsiredam {
    font-size: 12px;
    color: var(--pp-muted);
}

span.title {
    color: #B44D26;
}

.notice {
    padding: 12px 14px;
    margin: 12px 0;
    color: var(--pp-text);
    background-color: #F1F3F5;
    border: 1px solid var(--pp-border);
    border-radius: 5px;
    font-size: 12px;
}

div.searchtitle {
    margin-bottom: 8px;
    color: var(--pp-text);
    font-size: 16px;
    font-weight: 700;
}

/* ==========================================================
   PEDIGREE AND SUBJECT DETAILS
   ========================================================== */

div.subject {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

div.namewithtitles {
    font-size: 26px;
    line-height: 1.3;
}

.subjectcall {
    font-size: 16px;
    font-style: italic;
    color: var(--pp-muted);
}

div.subjectdetails {
    color: var(--pp-text);
    font-size: 13px;
    font-style: normal;
}

div.subjectlinks {
    margin-top: 12px;
    font-size: 12px;
}

div.subjectlinks a {
    color: var(--pp-link);
}

div.genlinks {
    margin: 6px 0 4px;
    color: var(--pp-link);
    font-size: 12px;
}

div.genlinks a {
    color: var(--pp-link);
}

span.ancestor {
    font-size: 12px;
}

span.ancestordetails {
    color: var(--pp-text);
    font-size: 12px;
    overflow-wrap: anywhere;
}

span.ancestorsiblings {
    color: #32734B;
    font-size: 12px;
}

img.pedphoto {
    width: 180px;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--pp-border);
    border-radius: 5px;
}

div.headcontainer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

div.headleft {
    width: 200px;
    max-width: 100%;
}

div.headsection {
    text-align: left;
}

div.healthsection {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 24px;
    text-align: left;
}

/* ==========================================================
   LEGENDS AND MARKERS
   ========================================================== */

div.cellmarks {
    display: table-row;
    width: 60px;
    border: 1px solid var(--pp-border);
}

span.mark {
    display: table-cell;
    width: 30px;
    height: 10px;
}

span.m_red { background-color: red; }
span.m_orange { background-color: orange; }
span.m_yellow { background-color: yellow; }
span.m_green { background-color: green; }
span.m_cyan { background-color: cyan; }
span.m_blue { background-color: blue; }
span.m_fuchsia { background-color: fuchsia; }
span.m_purple { background-color: purple; }

div.searchcellmarks {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

div.legend {
    margin-top: 10px;
    padding: 10px 12px;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 5px;
}

div.legenditem {
    display: inline-block;
    margin: 3px 6px 3px 0;
    padding: 5px 8px;
    border: 1px solid var(--pp-border);
    border-radius: 4px;
}

span.legendcolor {
    display: inline-block;
    width: 20px;
}

div.legendhead {
    display: inline-block;
}

span.sibhead {
    color: #A75B17;
}

/* ==========================================================
   PANELS, PAGINATION AND MISCELLANEOUS
   ========================================================== */

div.panel {
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    padding: 20px;
    background: var(--pp-surface);
}

ol {
    margin-block: 6px;
    padding-left: 24px;
}

ol li {
    margin-bottom: 4px;
}

ul.mainindex {
    padding-left: 0;
}

ul.mainindex li {
    margin-bottom: 20px;
    list-style: none;
}

.champion {
    color: #B42318;
    font-weight: 700;
}

a.topofpage {
    display: block;
    padding-bottom: 10px;
    color: var(--pp-text);
    font-size: 24px;
    font-weight: 700;
}

.ab {
    display: block;
}

span.abb::after {
    content: '\A\A';
    white-space: pre;
    line-height: 10px;
}

span.nick {
    display: block;
    padding-bottom: 8px;
    font-style: italic;
}

span.hip::before {
    content: 'HIP: ';
    display: block;
}

div.hi {
    margin-top: 8px;
    text-decoration: underline;
}

font.termsofuse,
font.termsofusebold {
    font-size: 13px;
}

font.termsofusebold {
    font-weight: 700;
}

div.termsofuse {
    width: 100%;
    max-width: 800px;
}

span.warning {
    color: #B42318;
    font-size: 12px;
}

div.blurb {
    font-size: smaller;
}

div.pagelinks {
    margin-top: 8px;
    padding: 8px 0;
    text-align: left;
}

div.pagelinks a {
    display: inline-block;
    padding: 5px 9px;
    margin: 0 4px 4px 0;
    color: var(--pp-text);
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: 4px;
}

div.pagelinks a:hover {
    background: var(--pp-soft);
    text-decoration: none;
}

footer {
    margin-top: 24px;
    padding: 12px 0;
    color: var(--pp-muted);
    background: transparent;
    border-top: 1px solid var(--pp-border);
}

/* ==========================================================
   CONSISTENT LEFT ALIGNMENT
   Avoid inherited centering in legacy search components
   ========================================================== */

div.container,
div.container form,
div.container fieldset,
div.container label,
div.container table,
div.container th,
div.container td,
div.container .form-inline,
div.container .form-inline label,
div.container .form-group,
div.container .form-row,
div.container .searchtitle,
div.container .headsection,
div.container .healthsection {
    text-align: left;
}

/* ==========================================================
   RESPONSIVE LAYOUT
   ========================================================== */

@media (max-width: 700px) {
    div.container {
        padding: 20px 1.25em 28px;
    }

    div.panel {
        padding: 14px;
    }

    table.form-table,
    table.search,
    table.input {
        width: 100%;
    }

    table.form-table td,
    table.form-table th,
    table.search td,
    table.search th,
    table.input td,
    table.input th {
        padding: 8px;
    }

    table.input td:first-child {
        width: 35%;
    }

    div.headcontainer {
        gap: 14px;
    }

    div.headleft {
        width: 100%;
    }

    div.subject,
    div.namewithtitles {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    div.container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .btn {
        max-width: 100%;
        white-space: normal;
    }

    .form-inline .form-control,
    .navbar-form .form-control {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    table.input td:first-child {
        width: 40%;
    }
}


*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 10px 3em 18px;
    font-family: Verdana, sans-serif;
    font-size: 13px;
    color: #333333;
    background-color: #F7F8FA;
}

div.container {
    width: 100%;
    max-width: 1500px;
    margin: 0;
    padding: 0;
    color: #333;
    text-align: left;
}

@media (max-width: 480px) {
    body {
        padding: 10px 14px 18px;
    }
}



