<?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_2b527f2e-c4ac-4b27-908f-aa9ba6281c08">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_f046da35-3fbc-4037-9efb-c466a3476532">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_c69047ee-e1b7-4bfa-b12a-b250b441af4a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_e4cbf0f8-4656-4ab5-907b-42ee2e09288d">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_fd010ae2-f3d2-40ba-bfce-d86d8b387f42">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_8c588854-ac0c-45c0-a018-6879763cc97a">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_9a1126c7-3a90-40b3-a424-ff6c1bb84623">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_6eb71ae5-42fa-4b7b-874a-6eea4e62d9e1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_91f04b48-7ea4-4bb6-816c-5134b102fdd0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_f678509c-db85-49ef-a930-8eae725dd7ca">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      id="F_4e055bf6-b3be-4eaf-8889-3f3c3f176d4d">&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;2,729,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_2b527f2e-c4ac-4b27-908f-aa9ba6281c08"
      decimals="0"
      id="F_04ef20f1-5525-46ff-b2af-0a101b5606cf"
      unitRef="U_USD">2729000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
