<?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_a42fa0b6-336d-41cb-a475-528ffa0e2c73">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-05</startDate>
            <endDate>2026-06-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_c0a1e233-08a9-48dc-a25b-4468e70af4c9">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_8dbc4687-b215-4152-b6b8-b796fafea6b9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_5aceb08a-59d3-44d1-84e6-f49eb37004f3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_1a989c5b-d131-457e-83ee-0e0ad5e749d6">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_82ae7424-b34b-4436-9b4a-70d7391697c1">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_a5fe24c1-cc69-4728-bbae-39cc498b7927">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_c174a6d7-6482-455b-a1d6-1bd8dbe635e3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_9a7f689c-5065-4323-ab3d-ef628936fc89">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_a5f1c24c-958f-4dbf-b5d6-d5a9b9ea4bbc">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      id="F_725d7d4b-4599-4a5d-9af4-860fb2ad865f">&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;1,010,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_a42fa0b6-336d-41cb-a475-528ffa0e2c73"
      decimals="-3"
      id="F_b6a10a2f-df90-4e04-ab09-d6d55c925c88"
      unitRef="U_USD">1010000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
