<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_bd1f031a-d668-4219-a92a-baa9efa95229">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-15</startDate>
            <endDate>2026-09-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_972b6502-4791-42a2-a088-2648bc7f1651">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_05758782-2d04-4400-bc48-6dfe48582436">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_990fe20e-77ba-49c2-9d53-a9b237b20bce">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_7ddef72f-157f-4cb8-99ae-a8665a670896">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_fe66d731-ebc0-447f-a7c2-d5a6595a1e0b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_573dafc1-d95c-48fb-ae60-6e6664689458">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_12c81e49-c525-448d-a9ad-0af239274f01">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_c98a6fee-9399-4c9d-8687-8fc997f99dc4">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_e17d4b37-2ba6-4295-a030-62428ad3b5a4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bd1f031a-d668-4219-a92a-baa9efa95229"
      id="F_2080b427-2e2d-4ff8-9c4e-c84c0aa4db65">&lt;p style="tab-size:26.66px;font-size:12pt;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;1,081,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_bd1f031a-d668-4219-a92a-baa9efa95229"
      decimals="-3"
      id="F_2c882b58-64de-4c64-bd13-7b4d9523d9ea"
      unitRef="U_USD">1081000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
