<?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_bd7e4724-ba5f-4a46-9a23-0b7627a9759c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_19d6b935-d760-4b11-ac19-cd98a89781fa">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_22e235ce-203a-402a-a6e9-44d27ceb63a8">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_dac43e4c-74f6-4895-92ec-8fd8bc79dab3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_510eb1f2-e2d8-4a90-85d0-40f29db4437b">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_b5c7df3a-0e48-416a-946d-e62f19dec619">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_f0ac4b74-09c0-4a5b-ac5a-0a779163d295">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_471c84a3-23ce-445f-bfff-c02b2f64a6a8">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_69215f35-d835-46a6-9c71-09da44748029">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_6da9059c-aaa0-4540-a960-7855c48a8c7b">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      id="F_38e326cd-448a-469d-9406-731d72a988b5">&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;28,225,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_bd7e4724-ba5f-4a46-9a23-0b7627a9759c"
      decimals="-3"
      id="F_1ef6bf06-e96c-48ee-bc67-06ed19388d94"
      unitRef="U_USD">28225000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
