<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_d243e832-6fec-413b-ab82-0533de6dc427">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-17</startDate>
            <endDate>2026-03-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_dc31af34-1636-41cf-a408-f7b9a55a3dbf">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_6178ebc7-3fca-412e-b37d-96fc2d8f53c7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_3e5153cc-0337-4667-98d2-6f175bce7adc">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_445073f1-1cc7-4d31-a038-18c481ef432c">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_79a0c542-6b24-4e64-9999-3fc18088657d">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_6c9bcd0e-f687-4ad8-9e91-3eab74163114">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_d25569f5-3b07-4b6d-845a-09109e86499e">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_505f9838-5a2a-44be-b800-9a2ce5bf5b45">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_e46c12a6-4ab1-4907-9742-e40209f0df3e">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      id="F_2c1e94cf-612a-4086-bde8-6737c15dbd38">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;4,025,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_d243e832-6fec-413b-ab82-0533de6dc427"
      decimals="0"
      id="F_94f0c85e-f540-4fb7-8d5f-3da84e3ece2d"
      unitRef="U_USD">4025000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
