/* MMD Color Scheme */
:root {
    --nbc-blue: #4F6FD9;        
    --nbc-dark-blue: #173a61;   
    --dark-blue: #1d426d;
    --nbc-gold: #A7C7FF;        
    --nbc-red: #FF6B6B;         
    --nbc-light-gray: #f2f2f2;  
    --nbc-dark-gray: #12273f;   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji")
}

body {
    background-color: #ffffff;
    color: var(--nbc-dark-gray);
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(to right, var(--nbc-dark-blue), var(--dark-blue)), url() no-repeat center center/cover;
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

/* make header stay on top when scrolling */
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav li{
  margin: 0;
}

.header-nav{
  margin-left: auto;          /* key: moves nav to the right */
}


.header-nav ul li {
    position: relative;
}

.header-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
}


/* Hover */
.header-nav ul li a:hover {
    background-color: #232a49
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-main {
    display: flex;
    align-items: center;
    padding: 1px 0;
}

.logo{
  display:flex;
  align-items:center;
  height: 60px;
  min-width: 0;
}

.logo-link{
  display:inline-flex;
  align-items:center;
  min-width: 0;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--nbc-gold);
    margin-right: 15px;
}

/* PNG logo */
.logo-img{
  height: 56px;
  width: auto;
  max-width: 320px;  /* desktop cap */
  object-fit: contain;
  display:block;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 0;
    position: relative;
}

nav ul li a {
    color: var(--nbc-dark-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.1rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
}

nav ul li a:hover {
    background-color: rgba(0, 102, 179, 0.08);
}

nav ul li.active a {
    color: rgb(255, 174, 0)
}

/* Hero Section */
.hero {
    background-color: var(--nbc-dark-blue);
    color: var(--nbc-dark-gray);
    padding: 1rem;
    text-align: center;
}

.hero h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0rem;
    font-weight: bold;
}

.hero p {
    color: white;
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto  0rem;
}

/* Page Hero (for subpages) */
.page-hero {
    background: var(--dark-blue);
    color: white;
    padding: 3rem 0;
}

.page-hero h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    max-width: 700px;
}

.breadcrumb {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--nbc-gold);
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 0.35rem;
}

/* === Interest Rate Corridor strip === */


/* Remove shared background — each block will have its own card */
.rate-corridor-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem; /* spacing between the 3 cards */
}

/* Base card style */
.rate-block {
    padding: 1.8rem 1rem;
    border-radius: 10px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* Typography */
.rate-value {
    font-size: 2.2rem;
    font-weight: 700;
}

.rate-label {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.rate-meta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

/* Custom colors for each card */
.rate-floor {
    background: #A7C7FF;
    color: rgb(0, 0, 0)
}

.rate-policy {
    background: #4F6FD9; 
    color: #ffffff;       
}

.rate-ceiling {
    background: #1F2D66; /* Deep blue */
}

/* individual blocks */
.rate-block {
    padding: 1.6rem 1rem;
}

.rate-block + .rate-block {
    border-left: 1px solid rgba(0, 0, 0, 0.35);  /* vertical divider */
}

/* slightly highlight the middle (policy) block if you like */
.rate-block--policy {
    background: rgba(255, 255, 255, 0.12);
}

/* typography */
.rate-value {
    font-size: 2.2rem;
    font-weight: 700;
}

.rate-label {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.rate-meta {
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

/* responsive: stack on small screens */
@media (max-width: 768px) {
    .rate-corridor-inner {
        grid-template-columns: 1fr;
    }

    .rate-block + .rate-block {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.35);
    }
}


/* Buttons */
.btn {
    display: inline-block;
    background: var(--nbc-gold);
    color: var(--nbc-dark-blue);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #e0b83d;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--nbc-gold);
    color: white;
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--nbc-gold);
    color: var(--nbc-dark-blue);
}

/* Sections */
.section {
    padding: 20px 0;
}

.section-title {
    text-align: start;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    position: relative;
}

.section-title h2 {
    font-size: 2rem;    
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.section-title p {
    color: #000000;
    max-width: 700px;
    margin: 1px 0;
}

/* ===== MMD Overview – distinct background ===== */
#mmd-overview {
  background-color: #ffffff; /* soft blue-grey (BoE / central bank style) */
}

#mmd-overview .container {
  padding-top: 10px;
  padding-bottom: 10px;
}


/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--nbc-gold);
    padding: 2.2rem;
    margin-bottom: 1rem; /* space between rows of cards */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--nbc-dark-blue);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--nbc-dark-blue);
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.cards:has(> .card:only-child) {
    max-width: 380px;          /* ~width of one card in the 3-card layout */
    margin-inline: left;       /* center the block */
}

.cards:has(> .card:only-child) .card {
    margin-bottom: 0;
}

.cards.cards--single {
    max-width: 380px;      /* adjust as you like */
    margin-inline: left;   /* center the single card block */
}

/* Announcements */
/* Announcements: detailed PDF blocks */

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.announcement-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1.75rem;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.announcement-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* blue underlined PDF link style */
.ann-doc-link {
    color: #003078;
    text-decoration: underline;
    font-weight: 500;
}

.ann-doc-link:hover {
    text-decoration: none;
}

/* main highlighted PDF box */
.ann-doc-main {
    display: flex;
    align-items: stretch;
    margin: 1rem 0 1.25rem;
    background: #d9b24c;          /* warm gold */
    color: #000;
    padding: 0.9rem 1.1rem;
    max-width: 420px;
}

.ann-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.6rem;
}

.ann-doc-body {
    flex: 100;
}

.ann-doc-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}

.ann-doc-title {
    display: inline-block;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.ann-doc-title:hover {
    text-decoration: underline;
}

.ann-doc-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    font-size: 1.2rem;
}

/* list of extra PDFs under the main box */
.ann-doc-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0.5rem 0;
}

.ann-doc-list li {
    margin-bottom: 0.35rem;
}

.ann-doc-list a {
    color: #003078;
    text-decoration: underline;
}

.ann-doc-list a:hover {
    text-decoration: none;
}


/* FAQ */
.faq-list {
    max-width: 800px;
    margin: left    
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-left: 4px solid var(--nbc-blue);
}

.faq-question {
    padding: 1.5rem;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--nbc-dark-blue);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 1000px;
}


/* Footer */
footer {
    background: var(--nbc-dark-blue);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--nbc-gold);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
}



/* "On this page" navigation box*/
.on-this-page {
    background: #c4c9cf28;          /* light grey box */
    border: 1px solid #e0e0e0;    /* subtle frame */
    border-radius: 10px;             
    padding: 1.25rem 1.5rem;
    margin-bottom: 0rem;
}

.on-this-page-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000000;
}

.on-this-page-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* max 3 per row */
    gap: 1rem 2rem;  /* row gap, column gap */
    align-items: start;
}

.on-this-page-item {
    display: grid;
    grid-template-columns: 1rem 1fr;  /* arrow | text */
    column-gap: 0.6rem;
    align-items: start;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    cursor: pointer;
}

.on-this-page-arrow {
    width: 0.75rem;
    height: 0.75rem;
    margin-top: 0.5rem;   /* aligns arrow with first text line */
}

.on-this-page-arrow::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("/assets/image/next.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.on-this-page-text {
    text-decoration: underline;
    text-underline-position: under;
    text-underline-offset: 0.2px;
    line-height: 1.45;        /* BOE-like readability */
    display: block;
    word-break: normal;
    overflow-wrap: break-word;
}
.on-this-page-item:hover .on-this-page-text {
    text-decoration: none;
}

/* Stack links nicely on small screens */
@media (max-width: 768px) {
    .on-this-page-links {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .language-selector {
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}
/* Monetary instruments dropdown list */
.tool-list {
    max-width: 725px;
}

.tool-item {
    background: #ffffff;
    max-width: 725px;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    border-left: 4px solid var(--nbc-blue);
    overflow: hidden;
}

.tool-summary {
    list-style: none;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-summary::-webkit-details-marker {
    display: none; /* hide default marker */
}

.tool-summary-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tool-name {
    font-weight: 700;
    color: var(--nbc-dark-blue);
}

.tool-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
}

.tool-toggle {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Change + to – when open */
.tool-item[open] .tool-toggle {
    content: "-";
}

.tool-body {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.tool-key-info {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 0.5rem 1.5rem;
}

.tool-key-info dt {
    font-weight: 600;
    color: var(--nbc-dark-blue);
}

.tool-key-info dd {
    margin: 0;
    color: #555;
}

@media (max-width: 768px) {
    .tool-key-info {
        grid-template-columns: 1fr;
    }
}

/* Fix alignment of bullet lists inside Key Information table */
.tool-key-table td ul {
    margin: 0;              /* remove extra top/bottom spacing */
    padding-left: 0rem;   /* minimal indent to show bullets cleanly */
    list-style-position: inside;  /* aligns bullets with text block */
}

.tool-key-table td ul li {
    margin: 0.2rem 0;       /* compact bullets */
    padding: 0;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: #ffffff; 
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    color: #1c54a5; 
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease-in-out;
}

#backToTop:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.25);
}
/* Key information table – BoE-style inspired */
.tool-key-title {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--nbc-dark-blue);
}

/* basic table layout */
.tool-key-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #ffffff;
}

/* rows have very light separators */
.tool-key-table th,
.tool-key-table td {
    padding: 0.6rem 0.9rem;
    border-top: 1px solid #e3e3e3;   /* tiny border between components */
}

/* first row gets a top border too */
.tool-key-table tr:first-child th,
.tool-key-table tr:first-child td {
    border-top: 1px solid #dcdcdc;
}

/* label column */
.tool-key-table th {
    width: 170px;
    text-align: left;
    font-weight: 600;
    color: var(--nbc-dark-blue);
    background: #f7f7f7;
    vertical-align: top;
}

/* value column */
.tool-key-table td {
    color: #000000;
}

/* hover effect – lighter background when pointing at row */
.tool-key-table tr:hover th,
.tool-key-table tr:hover td {
    background: #f3f3f3;    /* subtle lighter colour on hover */
}

/* ===== Mobile hamburger (BoE-like) ===== */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

.nav-toggle{
  display:none;
  margin-left:auto;
  background:transparent;
  border:0;
  cursor:pointer;
  padding:10px;
  border-radius:8px;
  flex-shrink: 0;
}

.nav-toggle-bars{
  display:inline-block;
  width:26px;height:2px;
  background:#fff;
  position:relative;
  border-radius:2px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:26px;height:2px;
  background:#fff;
  border-radius:2px;
}
.nav-toggle-bars::before{ top:-8px; }
.nav-toggle-bars::after { top: 8px; }

.header-main.nav-open .nav-toggle-bars{ background:transparent; }
.header-main.nav-open .nav-toggle-bars::before{ top:0; transform:rotate(45deg); }
.header-main.nav-open .nav-toggle-bars::after { top:0; transform:rotate(-45deg); }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after{
  transition:transform .18s ease, top .18s ease,background .18s ease;
}

@media (max-width:768px){
  .header-main{
    position:relative;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  /* dropdown panel */
  .header-nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    margin-top:10px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 10px 28px rgba(0,0,0,.18);
    overflow:hidden;

    max-height:0;
    opacity:0;
    pointer-events:none;
    transition:max-height .25s ease, opacity .2s ease;
    z-index:9999;
  }

  .header-main.nav-open .header-nav{
    max-height:80vh;
    opacity:1;
    pointer-events:auto;
  }

  .header-nav ul{
    display:flex;
    flex-direction:column;
    padding:10px;
    gap:4px;
  }

  /* Force mobile links to be readable (your CSS sets white elsewhere) */
  .header-nav ul li a{
    color:var(--nbc-dark-blue) !important;
    padding:12px 14px;
    border-radius:10px;
    display:block;
  }

  .header-nav ul li a:hover{
    background:rgba(134, 137, 151, 0.08);
  }
}

/* ===== BoE-inspired schedule table ===== */
.mmd-table-card{
  background:#fff;
  max-width: min-content;
  border:1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
}

.mmd-table-head {
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.mmd-table-title{
  margin:0 0 6px;
  font-size:1.1rem;
  color:var(--nbc-dark-blue);
}

.mmd-table-subtitle{
  margin:0;
  font-size:0.95rem;
  color:rgba(0,0,0,0.65);
}

.mmd-table-scroll{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.mmd-table{
  width:100%;
  border-collapse:separate;
  border-spacing:00;
  min-width:560px; /* forces horizontal scroll on small screens (BoE-like) */
}

.mmd-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--nbc-dark-blue);
  color:#fff;
  text-align:left;
  font-weight:600;
  padding:10px 9px;
  font-size:0.95rem;
}

.mmd-table tbody td{
  padding:12px 14px;
  border-top:1px solid rgba(0,0,0,0.06);
  color:rgba(0,0,0,0.85);
  white-space:nowrap;
}

.mmd-table tbody tr:nth-child(even){
  background:rgba(0,0,0,0.02);
}

.mmd-table tbody tr:hover{
  background:rgba(79,111,217,0.08);
}

.mmd-table-footnote{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-top:1px solid rgba(0,0,0,0.08);
  font-size:0.9rem;
  color:rgba(0,0,0,0.65);
  background:#fff;
}

.mmd-table-footnote .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:var(--nbc-gold);
  flex:0 0 auto;
}

@media (max-width: 768px){
  .mmd-table-head{ padding:16px 14px 10px; }
  .mmd-table-title{ font-size:1.05rem; }
  .mmd-table{ min-width:520px; }
}

/* ===== BoE-inspired STR schedule (text callout) ===== */
.boe-schedule-card{
  background:#fff;
    max-width:725px;
  border:1px solid rgba(0,0,0,0.10);
  border-radius:14px;
  padding:18px 18px;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
}

.boe-schedule-title{
  margin:0 0 10px;
  color:var(--nbc-dark-blue);
  font-size:1.15rem;
  line-height:1.3;
}

.boe-schedule-text{
  margin:0 0 14px;
  color:rgba(0,0,0,0.75);
  line-height:1.65;
}

.boe-schedule-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.boe-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  color:var(--nbc-dark-blue);
  border:1px solid rgba(36,58,143,0.28);
  background:rgba(36,58,143,0.04);
}

.boe-link:hover{
  background:rgba(36,58,143,0.08);
}

@media (max-width: 768px){
  .boe-schedule-card{ padding:16px 14px; }
}

/* ===== BoE-style intro text ===== */
.boe-intro-text{
  max-width: 900px;
  margin: 0 0 18px;
  color: rgba(0,0,0,0.78);
  line-height: 1.5;
  font-size: 1rem;
}

/* ===== Reuse existing table card styling ===== */
/* (Only add if not already defined) */
.mmd-table-card{
  background:#fff;
  border:1px solid rgba(0,0,0,0.08);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(0,0,0,0.06);
}

.mmd-table-scroll{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.mmd-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:720px; /* wider because of 4 columns */
}

.mmd-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--nbc-dark-blue);
  color:#fff;
  text-align:left;
  font-weight:600;
  padding:12px 14px;
  font-size:0.95rem;
}

.mmd-table tbody td{
  padding:12px 14px;
  border-top:1px solid rgba(0,0,0,0.06);
  color:rgba(0,0,0,0.85);
  white-space:nowrap;
}

.mmd-table tbody tr:nth-child(even){
  background:rgba(0,0,0,0.02);
}

.mmd-table tbody tr:hover{
  background:rgba(79,111,217,0.08);
}

@media (max-width: 768px){
  .mmd-table{
    min-width: 680px;
  }
}

/* sr-only helper (if you already have it, keep yours) */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Search sits next to nav */
.site-search{
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
}

/* Clickable icon button */
.search-toggle{
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  line-height: 0;
}
.search-toggle:hover{
  background: rgba(255,255,255,0.10);
}

/* Use your PNG */
.search-icon{
  display:block;
  width: 22px;
  height: 22px;
  background: url("/assets/image/search.png") no-repeat center / contain;
  opacity: 0.95;
}

/* Dropdown search bar */
.search-panel{
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;

  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  padding: 12px;
  z-index: 999999; /* above mobile hamburger panel */
}

.search-panel[hidden]{ display:none !important; }

.search-input{
  width: 100%;
  padding: 12px 44px 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  outline: none;
  font-size: 0.95rem;
}
.search-input:focus{
  border-color: rgba(79,111,217,0.65);
  box-shadow: 0 0 0 4px rgba(79,111,217,0.15);
}

.search-close{
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: rgba(0,0,0,0.55);
}

/* Mobile: full width dropdown */
@media (max-width: 768px){
  .search-panel{
    left: 0;
    right: 0;
    width: auto;
  }
}

/* ===== Search Results UI ===== */
.search-results,
.nav-search-results{
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
}

.search-result-item,
.nav-result-item{
  display:block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--nbc-dark-blue);
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  margin-bottom: 8px;
}

.search-result-item:hover,
.nav-result-item:hover{
  background: rgba(79,111,217,0.08);
}

.search-result-title,
.nav-result-title{
  font-weight: 700;
  margin-bottom: 2px;
}

.search-result-snippet,
.nav-result-snippet{
  font-size: 0.88rem;
  color: rgba(0,0,0,0.70);
  line-height: 1.35;
}

.search-empty{
  color: rgba(0,0,0,0.65);
  font-size: 0.9rem;
  padding: 8px 2px;
}

/* ===== Mobile behavior ===== */
/* Hide the header icon search on mobile; show search inside hamburger menu */
@media (max-width: 768px){
  .site-search{ display:none; }

  .nav-search-item{ display:block; }
  .nav-search-wrap{ padding: 8px 10px 12px; }

  .nav-search-input{
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.18);
    
    outline: none;
    font-size: 0.95rem;
  }
  .nav-search-input:focus{
    border-color: rgba(79,111,217,0.65);
    box-shadow: 0 0 0 4px rgba(79,111,217,0.15);
  }
}

/* Desktop/Tablet: do NOT show the mobile search item in the nav */
@media (min-width: 769px){
  .nav-search-item{ display:none; }
}
/* ===== BoE-style table ===== */

.boe-table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.boe-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #ffffff;
}

/* Header */
.boe-table thead th {
    text-align: left;
    padding: 0.85rem 0.75rem;
    border-bottom: 3px solid #003078; /* BoE-style dark blue */
    font-weight: 700;
    vertical-align: bottom;
}

/* Body cells */
.boe-table tbody td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}

/* Zebra striping */
.boe-table tbody tr:nth-child(even) {
    background-color: #f7f8fa;
}

/* Lists inside cells */
.boe-table td ul {
    margin: 0.25rem 0 0 1.1rem;
    padding: 0;
}

.boe-table td li {
    margin-bottom: 0.25rem;
}

/* Strong first column */
.boe-table tbody td:first-child {
    white-space: normal;     /* allow wrapping */
    max-width: 260px;        /* control column width */
    vertical-align: top;
}

/* Responsive text size */
@media (max-width: 768px) {
    .boe-table {
        font-size: 0.9rem;
    }
}

/* ===== Collateral group colors (header only) ===== */

/* Government Bond */
.mmd-table thead th.col-gov {
  background: linear-gradient(
    180deg,
    #2f5fb3,
    #244a8f
  );
}

/* NCD */
.mmd-table thead th.col-ncd {
  background: linear-gradient(
    180deg,
    #2f5fb3be,
    #244a8f
  );
}

/* Current Account */
.mmd-table thead th.col-ca {
  background: linear-gradient(
    180deg,
    #2f5fb3,
    #244a8f
  );
}

/* Keep text readable */
.mmd-table thead th.col-gov,
.mmd-table thead th.col-ncd,
.mmd-table thead th.col-ca {
      text-align: center;
  color: #ffffff;
}

.mmd-table th,
.mmd-table td {

  vertical-align: middle;
}

/* Keep Operation column visually balanced */
.mmd-table thead th:first-child,
.mmd-table tbody th {
  text-align: center;
}

/* ===== Search keyword highlight ===== */
mark.search-hit{
  background: rgba(255, 214, 0, 0.55);
  padding: 0 0.12em;
  border-radius: 4px;
}

/* subtle “target” glow when auto-scrolling */
.search-hit-target{
  outline: 3px solid rgba(255, 214, 0, 0.35);
  outline-offset: 6px;
  border-radius: 10px;
}

mark.search-hit{
  background: rgba(255, 214, 0, 0.55);
  padding: 0 .12em;
  border-radius: 4px;
}

.search-page-item{
  display:block;
  padding:14px 16px;
  border:1px solid rgba(18,39,63,.12);
  border-radius:10px;
  text-decoration:none;
  background:#fff;
}

.search-page-title{ font-weight:700; margin-bottom:6px; }
.search-page-snippet{ opacity:.9; line-height:1.5; }

.faq-steps {
    margin-top: 0.75rem;
    padding-left: 1.4rem;
}

.faq-steps li {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.tool-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}

/* ===== Paragraph spacing baseline ===== */
p {
    margin: 0.75rem 0;
}

/* ===== Bullet lists: aligned + slightly indented ===== */
ul,
ol {
    margin: 0.75rem 0;
    padding-left: 2.6rem;          /* slightly indented (was 1.25rem) */
    list-style-position: outside;  /* keeps bullet + text vertically aligned */
}

/* List items */
li {
    margin: 0.35rem 0;
    line-height: 1.6;
}

/* Ensure list text matches paragraph color */
.section ul,
.section ol,
.card ul,
.card ol,
.tool-body ul,
.tool-body ol,
.faq-answer ul,
.faq-answer ol {
    color: #000000;
}

/* Optional: tiny visual balance between bullet and text */
.section li,
.card li,
.tool-body li,
.faq-answer li {
    padding-left: 0.1rem;
}

/* ===== Center merged header cell like Excel ===== */
.mmd-table thead th[colspan] {
    text-align: center;        /* horizontal center */
    vertical-align: middle;    /* vertical center */
}
.mmd-table thead tr:first-child th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

/* ===== Draw divider under rowspan headers (Excel-like) ===== */
.mmd-table thead th[rowspan] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

/* Instrument / procedure image */
.instrument-image-wrap {
  text-align: left;
  margin-top: 2.5rem;
}

.instrument-image {
  max-width: 720px;        /* ideal reading width */
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

/* Mobile: slightly smaller */
@media (max-width: 768px) {
  .instrument-image {
    max-width: 100%;
  }
}