<?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_7acb2e34-fe84-4f63-bcfa-8dce175801c6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_a85b26c7-d0f5-4648-8330-52e9811b090e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_fee4a0d4-3392-4249-a8c9-52c8b6ad03ae">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_24586539-b7f9-4502-bb23-a68d05ab1878">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_dd1d2427-f11e-4a24-b3c6-a0d7d9febd4e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_d6e9a970-2705-4dc6-8287-89e5d7a5e90f">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_fbf5df23-2b78-4c27-bcbb-d514a6b151e1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_84a75cec-5952-4847-8160-0cd594fd0366">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_9bc327ab-6f57-491c-bbf4-830cdcb75b7b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_457d45f0-5fec-450e-ab90-7ffb43fdfc6c">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      id="F_bd49c4a7-32e3-491c-8dea-4cfa9fd9416d">&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;7,958,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_7acb2e34-fe84-4f63-bcfa-8dce175801c6"
      decimals="-3"
      id="F_fe8001d9-e409-4c91-82bc-415da1b2bf64"
      unitRef="U_USD">7958000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
