<?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_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_4906435c-65c5-4dc8-8b02-88a8b119ea01">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_4b38b290-8154-40b4-afcd-bd28c9cb5457">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_a1a1803f-e9b9-4328-b3ec-6e83d5176477">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_4e650aab-85e6-4dab-a24b-4e6d08463a7c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_5675b0a2-37d5-4b63-8bd7-422c1825308b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_20fafe8d-f1ef-454b-8088-b8ffa492398d">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_be817afd-eb1b-420b-b213-f7a6c449ea74">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_e681c8ca-ae73-46e4-af99-d66c87cd18f0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_7f7ca1e6-8bc4-4855-a9f8-6753abe9e6ba">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      id="F_5e738d68-c2c0-42db-b17c-ef376dcb57cd">&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;22,002,080&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_a237bc9f-3d9f-49d3-b7a9-e9b294c308c8"
      decimals="0"
      id="F_b715358a-d0d8-472a-ae07-c1d1e7765669"
      unitRef="U_USD">22002080</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
