


:root {
    --bg-p: #1a1c1e; --bg-s: #111827; --bg-c: #1f2937; --bg-ca: #272a30; --bg-ch: #303338;
    --bg-b: #2a2c2f; --bg-bh: #3e4044; --bg-ba: #f59e0b; --bg-bacc: #f59e0b; --bg-bacch: #d97706;
    --bg-in: #2a2c2f; --tx-p: #e2e2e5; --tx-s: #9ca3af; --tx-m: #5f6368; --tx-acc: #fde047; --tx-onacc: #111827;
    --br-p: #374151; --br-s: #4b5563; --br-f: #fde047; --sh-f: rgba(253,224,71,0.3);
    --sh-c: 0 4px 6px -1px rgba(0,0,0,0.2), 0 2px 4px -2px rgba(0,0,0,0.2);
    --lnk-c: #fde047; --lnk-ch: #fef08a; --hl-c: #f59e0b;
    --bTbl-bg-th: #111827; --bTbl-bg-even: #272a30; --bTbl-bg-hover: #303338;
    --bHlt-bg: #374151; --bHlt-tx: #fde047;
    --bLvT-srw-bg: #161e2e; --bLvT-srw-tx: #cbd5e1;
    --bLvT-pftr-bg: rgba(74,222,128,0.1); --bLvT-pftd-tx: #a7f3d0;
    --bLvT-rsktr-bg: rgba(248,113,113,0.1); --bLvT-rskd-tx: #fca5a5;
    --bYb-c: #e2e2e5; --bYb-act-c: #111827; --bYb-hvr-bg: #374151;
    --bPb-bg: #272a30; --bPb-br: #4b5563; --bPb-tx: #9ca3af; --bPb-hvr-bg: #303338; --bPb-hvr-br: #6b7280; --bPb-act-bg: #f59e0b; --bPb-act-tx: #111827;
    --nBxE-bg: #272a30; --nBxE-br: #4b5563; --nTlE-tx: #fde047; --nTxE-tx: #9ca3af;
    --teal50-bg: #162b29; --teal50-br: #1e4949; --teal50-tx: #a7f3d0; --teal50-h4: #e2e2e5; --teal50-p: #9ca3af;
    --sky50-bg: #172c3f; --sky50-br: #1d4662; --sky50-tx: #bae6fd; --sky50-h4: #e2e2e5; --sky50-p: #9ca3af;
}

body.light-theme {
    --bg-p: #f9fafb; --bg-s: #ffffff; --bg-c: #ffffff; --bg-ca: #f3f4f6; --bg-ch: #e5e7eb;
    --bg-b: #e5e7eb; --bg-bh: #d1d5db; --bg-ba: #f59e0b; --bg-bacc: #f59e0b; --bg-bacch: #d97706;
    --bg-in: #ffffff; --tx-p: #1f2937; --tx-s: #4b5563; --tx-m: #6b7280; --tx-acc: #d97706; --tx-onacc: #ffffff;
    --br-p: #e5e7eb; --br-s: #d1d5db; --br-f: #f59e0b; --sh-f: rgba(245,158,11,0.3);
    --sh-c: 0 4px 6px -1px rgba(0,0,0,0.05),0 2px 4px -2px rgba(0,0,0,0.05);
    --lnk-c: #c2410c; --lnk-ch: #ea580c; --hl-c: #f59e0b;
    --bTbl-bg-th: #f3f4f6; --bTbl-bg-even: #f9fafb; --bTbl-bg-hover: #eef2ff;
    --bHlt-bg: #e0e7ff; --bHlt-tx: #1e3a8a;
    --bLvT-srw-bg: #eef2ff; --bLvT-srw-tx: #1f2937;
    --bLvT-pftr-bg: #ecfdf5; --bLvT-pftd-tx: #065f46;
    --bLvT-rsktr-bg: #fee2e2; --bLvT-rskd-tx: #991b1b;
    --bYb-c: #1f2937; --bYb-act-c: #ffffff; --bYb-hvr-bg: #e5e7eb;
    --bPb-bg: #f3f4f6; --bPb-br: #d1d5db; --bPb-tx: #4b5563; --bPb-hvr-bg: #e5e7eb; --bPb-hvr-br: #9ca3af; --bPb-act-bg: #f59e0b; --bPb-act-tx: #ffffff;
    --nBxE-bg: #f3f4f6; --nBxE-br: #d1d5db; --nTlE-tx: #c2410c; --nTxE-tx: #4b5563;
    --teal50-bg: #f0fdfa; --teal50-br: #ccfbf1; --teal50-tx: #0f766e; --teal50-h4: #1f2937; --teal50-p: #4b5563;
    --sky50-bg: #f0f9ff; --sky50-br: #e0f2fe; --sky50-tx: #075985; --sky50-h4: #1f2937; --sky50-p: #4b5563;
}

body { font-family: 'Inter', sans-serif; background-color: var(--bg-p); color: var(--tx-p); }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

#sBnr { background-color: var(--bg-s); color: var(--tx-m); border-bottom: 1px solid var(--br-p); }
#sBnr a { color: var(--tx-acc); } #sBnr a:hover { color: var(--lnk-ch); }
header { background-color: var(--bg-s); color: var(--tx-p); box-shadow: 0 1px 2px 0 rgba(0,0,0,.08); border-bottom: 1px solid var(--br-p); }
header nav a { color: var(--tx-p); } header nav a:hover { color: var(--lnk-ch); } 
header nav span.text-gray-300 { color: var(--tx-m); }

.bChC { position: relative; width: 100%; max-width: 700px; margin-left: auto; margin-right: auto; height: 300px; }
@media (min-width: 768px) { .bChC { height: 350px; }  }
.bHcC { position: relative; width: 100%; margin-left: auto; margin-right: auto; height: 320px; }
@media (min-width: 1024px) { .bHcC { height: 400px; } }

.p-6.rounded-lg.shadow-md, .p-4.sm\:p-6.rounded-xl.shadow-md, .p-6.rounded-xl.shadow-sm { background-color: var(--bg-c); border: 1px solid var(--br-p); color: var(--tx-p); }
.p-6.rounded-lg.shadow-md h3, .p-4.sm\:p-6.rounded-xl.shadow-md h2, .p-4.sm\:p-6.rounded-xl.shadow-md h3, .p-6.rounded-xl.shadow-sm h3, .p-6.rounded-xl.shadow-md h3, .p-6.rounded-xl.shadow-md h4 { color: var(--tx-p); }
.p-6.rounded-lg.shadow-md p, .p-4.sm\:p-6.rounded-xl.shadow-md p, .p-6.rounded-xl.shadow-sm p, .p-6.rounded-xl.shadow-md p, .p-6.rounded-xl.shadow-md li { color: var(--tx-s); }
.p-6.rounded-lg.shadow-md #kV1 { color: var(--tx-acc); } /* OCR - amber */
.p-6.rounded-lg.shadow-md #kV2 { color: #f97316; } /* 2Y - orange */
.p-6.rounded-lg.shadow-md #kV5 { color: #84cc16; } /* 5Y - lime */
.p-6.rounded-lg.shadow-md #kV10 { color: #ec4899; } /* 10Y - pink */

.bTbl { width: 100%; border-collapse: collapse; font-size: 0.8rem; } 
.bTbl th, .bTbl td { border: 1px solid var(--br-p); padding: 0.4rem 0.6rem; text-align: left; color: var(--tx-p); }
.bTbl th { background-color: var(--bTbl-bg-th); color: var(--tx-p); font-weight: 600; }
.bTbl tbody tr:nth-child(even) { background-color: var(--bTbl-bg-even); } .bTbl tbody tr:hover { background-color: var(--bTbl-bg-hover); }
.bTbl .text-center { text-align: center; }
.bHlt { background-color: var(--bHlt-bg) !important; } .bHlt td { font-weight: 600; color: var(--bHlt-tx) !important; }

.bLvT .bSRw td { background-color: var(--bLvT-srw-bg); font-weight: bold; color: var(--bLvT-srw-tx); text-align: center; font-size: 0.75rem; padding: 0.3rem; }
.bLvT .bPFTr td { background-color: var(--bLvT-pftr-bg); } .bLvT .bRSKTr td { background-color: var(--bLvT-rsktr-bg); }
.bLvT .bPftD { color: var(--bLvT-pftd-tx); } .bLvT .bRskD { color: var(--bLvT-rskd-tx); }

.bYb { transition: background-color 0.3s, color 0.3s, border-color 0.3s; border: 1px solid; color: var(--bYb-c); }
.bYb.bYBA { color: var(--bYb-act-c) !important; } 
.bYb:not(.bYBA):hover { background-color: var(--bYb-hvr-bg) !important; }

.bPb { background-color: var(--bPb-bg); border: 1px solid var(--bPb-br); color: var(--bPb-tx); } 
.bPb:hover { background-color: var(--bPb-hvr-bg); border-color: var(--bPb-hvr-br); }
.bPb.bPBA { background-color: var(--bPb-act-bg); border-color: var(--bPb-act-bg); color: var(--bPb-act-tx); font-weight: 600; } 
#nBox { background-color: var(--nBxE-bg); border: 1px solid var(--nBxE-br); } /* Updated from nBxE */
#nBox h4 { color: var(--nTlE-tx); } /* Updated from nTlE */
#nBox p { color: var(--nTxE-tx); } /* Updated from nTxE */

.bg-teal-50 { background-color: var(--teal50-bg) !important; border: 1px solid var(--teal50-br); color: var(--teal50-tx); }
.bg-sky-50 { background-color: var(--sky50-bg) !important; border: 1px solid var(--sky50-br); color: var(--sky50-tx); }
.bg-teal-50 h4, .bg-sky-50 h4 { color: var(--teal50-h4); } .bg-teal-50 p, .bg-sky-50 p { color: var(--teal50-p); }

.bRoEM { font-style: italic; color: var(--tx-s); } 
.bXBtn { background-color: #059669; color: white; padding: 0.5rem 1rem; border-radius: 0.375rem; font-weight: 500; transition: background-color 0.2s; }
.bXBtn:hover { background-color: #047857; }

#aiPT { background-color: var(--bg-in); color: var(--tx-p); border: 1px solid var(--br-p); transition: border-color .2s, box-shadow .2s; } /* Updated from aiTa */
#aiPT:focus { border-color: var(--br-f); box-shadow: 0 0 0 2px var(--sh-f); outline: none; }
#aiPT::placeholder { color: var(--tx-m); }
#aiRpB { background-color: var(--bg-in); border: 1px solid var(--br-p); color: var(--tx-s); display: none; }  /* Updated from aiKōr */
#aiS2 a { color: var(--lnk-c); } #aiS2 a:hover { text-decoration: underline; color: var(--lnk-ch); } 
#aiPB:disabled { opacity: 0.5; cursor: not-allowed; } /* Updated from aiBt */
.bBld { font-weight: 600; }
.bHltTx { font-weight: 600; color: var(--hl-c); }


.nBtn, .nBtnA { display: inline-flex; align-items: center; justify-content: center; background-color:var(--bg-b);color:var(--tx-p);transition:background-color .2s,color .2s; border: 1px solid var(--br-s); }
.nBtn:hover,.nBtn[aria-expanded="true"]{background-color:var(--bg-bh);color:var(--tx-acc);}
.nBtnA:hover{background-color:var(--bg-bh);color:var(--tx-acc);}

.nDrp{position:absolute;right:0;margin-top:.5rem;width:auto;min-width:max-content;border-radius:.375rem;box-shadow:var(--sh-c);background-color:var(--bg-c);border:1px solid var(--br-p);padding:.25rem; z-index:30;} 
.nDrp .flex { display: flex; flex-direction: column; gap: 0.125rem; } 

.nLnk { display: block; padding: 0.25rem 0.5rem; font-size: 0.75rem; color: var(--tx-s); border-radius: 0.25rem; white-space: nowrap; }
.nLnk:hover { background-color: var(--bg-bh); color: var(--tx-acc); }
.nLnkM { display: block; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--tx-s); border-bottom: 1px solid var(--br-p); }
.nLnkM:hover { background-color: var(--bg-bh); color: var(--tx-acc); }
.nLnM { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--tx-s); }
.nLnM.active { color: var(--tx-acc); font-weight: 600; }
.nLnM:hover:not(.active) { background-color: var(--bg-bh); color: var(--tx-acc);}
.nLnB.active { font-weight: 700; color: var(--tx-onacc) !important; background-color: var(--bg-bacc) !important; border-color: var(--bg-bacc) !important; }
.nLnB.active:hover { background-color: var(--bg-bacch) !important; border-color: var(--bg-bacch) !important; }

.bHX { display:table-cell!important } 
@media (max-width: 640px) { .bHX { display: none!important; } .bLvT th, .bLvT td { padding: 0.3rem 0.4rem; font-size: 0.7rem;} }

header .relative { display: inline-block; }
header .nDrp { min-width: 160px; }

footer.ftrSrc { border-top: 1px solid var(--br-p); color: var(--tx-s); background-color: var(--bg-c); padding: 1.5rem 1rem; margin-top: 2rem; }
footer.ftrSrc p { color: var(--tx-s); }
.ftrSrc h3 { color: var(--tx-acc); font-size: 1.25rem; margin-bottom: 1rem; text-align: left; font-weight: 700; }
.ftrSrc .cols { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.ftrSrc .col-group { display: flex; flex-wrap: wrap; align-items: baseline; margin-right: 1.5rem; margin-bottom: 0.5rem; }
.ftrSrc .col-group h4 { color: var(--tx-p); font-size: 0.9rem; font-weight: 600; margin-right: 0.5em; white-space: nowrap; flex-shrink: 0; }
.ftrSrc .col-group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ftrSrc .col-group li { display: inline-block; margin-right: 0.75rem; white-space: nowrap; } /* Updated for horizontal flow */
.ftrSrc .col-group a { color: var(--tx-s); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.ftrSrc .col-group a:hover { color: var(--lnk-ch); text-decoration: underline; }
.ftrSrcP { font-size: 0.8rem; color: var(--tx-s); text-align: center; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--br-p); }

/* Standard Google Search Bar Styles */
.gsbC { 
    display: flex; 
    gap: 0.5rem; 
    align-items: center; 
    padding: 0.75rem; 
    border: 1px solid var(--br-s); 
    border-radius: 0.5rem; 
    background-color: var(--bg-ca); 
    /* margin-top: 1rem; removed default top margin */
    box-shadow: var(--sh-c); 
}
#fS_c_bnd.gsbC { /* Specific for bonds footer search container */
    margin-top: 0;
    flex-grow: 1; /* Allow search bar to take available space if desired */
    min-width: 280px; /* Prevent it from becoming too small */
}
.gsIn { 
    flex-grow: 1; 
    padding: 0.75rem 0.75rem; /* Increased vertical padding */
    font-size: 0.875rem; 
    color: var(--tx-p); 
    background-color: var(--bg-in); 
    border: 1px solid var(--br-s); 
    border-radius: 0.25rem; 
    transition: border-color 0.2s, box-shadow 0.2s; 
} 
.gsIn:focus { border-color: var(--br-f); box-shadow: 0 0 0 2px var(--sh-f); outline: none; }
.gsIn::placeholder { color: var(--tx-m); } 
.gsBt { 
    padding: 0.75rem 1rem; /* Increased vertical padding */
    font-size: 0.875rem; 
    font-weight: 600; 
    background-color: var(--bg-bacc); 
    color: var(--tx-onacc); 
    border: 1px solid var(--bg-bacc); 
    border-radius: 0.25rem; 
    transition: background-color .2s, border-color .2s; 
    cursor: pointer; 
} 
.gsBt:hover { background-color: var(--bg-bacch); border-color: var(--bg-bacch); }

/* New style for the irdnz.com link in bonds.html footer */
.gsLnk {
    font-size: 0.875rem; 
    padding: 0.75rem 1rem; /* Match button padding */
    line-height: 1.25rem; /* Ensure text aligns well with button if needed */
    color: var(--lnk-c); 
    text-decoration: none;
    border-radius: 0.25rem; 
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    background-color: var(--bg-ca); /* Match search bar container bg */
    border: 1px solid var(--br-s); /* Match search bar border for grouping */
}
.gsLnk:hover {
    color: var(--lnk-ch);
    text-decoration: underline;
}
.ftrSrchContBonds { /* Container for search and link in bonds.html footer */
    margin-bottom: 1rem; /* Space before the search scope explanation paragraph */
}

/* API Key Section - adapted from 1.css */
#apiKeySectionBonds {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}
#apiKeySectionBonds h3 {
    color: var(--tx-s);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}
#apiKeySectionBonds p {
    color: var(--tx-m);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-align: center;
}
#apiKeySectionBonds a {
    color: var(--lnk-c) !important;
    text-decoration: underline;
}
#apiKeySectionBonds a:hover {
    color: var(--lnk-ch) !important;
}
#apiKeySectionBonds .fi {
    background-color: var(--bg-in);
    color: var(--tx-p);
    border: 1px solid var(--br-s);
    border-radius: 0.25rem;
    padding: 0.375rem 0.6rem;
    font-size: 0.75rem;
}
#apiKeySectionBonds .fi:focus {
    border-color: var(--br-f);
    box-shadow: 0 0 0 2px var(--sh-f);
    outline: none;
}
#apiKeySectionBonds .bt {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    height: 100%;
}

.bt_pr { /* Primary button */
    background-color: var(--bg-bacc);
    color: var(--tx-onacc);
    border: 1px solid var(--bg-bacc);
}
.bt_pr:hover {
    background-color: var(--bg-bacch);
    border-color: var(--bg-bacch);
}
.bt_sc { /* Secondary button */
    background-color: transparent;
    color: var(--tx-s);
    border: 1px solid var(--br-s);
}
.bt_sc:hover {
    background-color: var(--bg-bh);
    border-color: var(--tx-s);
}
#apiKeyStatusBonds.success {
    color: #4ade80; /* A light green color */
}
#apiKeyStatusBonds.error {
    color: #f87171; /* A light red color */
}
#apiKeyStatusBonds.info {
    color: var(--tx-s);
}

/* Special button style for prominent links */
.nBtn-highlight {
    background-color: var(--bg-bacc); /* Prominent yellow/amber */
    color: var(--tx-onacc); /* Dark text on accent */
    border: 1px solid var(--bg-bacc);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color .2s, border-color .2s, transform .2s;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.25rem;
}

.nBtn-highlight:hover {
    background-color: var(--bg-bacch); /* Darker yellow/amber on hover */
    border-color: var(--bg-bacch);
    color: var(--tx-onacc);
    transform: translateY(-1px);
}

/* Special button style for mobile menu */
.nLnkM-highlight {
    background-color: var(--bg-ca); /* Card-alt background */
    color: var(--tx-acc); /* Accent yellow text */
    border: 1px solid var(--tx-acc);
    font-weight: 600;
    margin: 0.25rem 1rem;
    border-radius: 0.375rem;
    text-align: center;
    display: block;
    padding: 0.75rem 1rem;
}

.nLnkM-highlight:hover {
    background-color: var(--bg-bacc); /* Prominent yellow/amber on hover */
    color: var(--tx-onacc);
    border-color: var(--bg-bacc);
}
