<?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_577c80b0-f9a6-400f-8e67-bd339106b1f1">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-08</startDate>
            <endDate>2026-06-08</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_6fb0e4c1-e92f-47df-b686-df53006203db">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_d5b46ea1-3aae-49ed-822e-d63bc52a6c37">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_16b8cbc9-a07b-4b30-925e-1c12c46f8e66">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_a192c39c-8041-414f-92ec-4f5ef825239f">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_743eb168-7be3-4990-97b5-fee592f40b86">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_8296fc83-ed8a-48b5-81ee-791bf554c948">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_9d4dea23-5a3a-451f-940b-2b6025b2de1f">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_ce9bb5e8-20f0-48b0-a8c9-c65eade2d97e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_3265670d-cac6-4f4e-9325-509e05c9d781">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      id="F_2c6e0713-e9af-494f-9bf6-47ff15d86f9d">&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,170,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_577c80b0-f9a6-400f-8e67-bd339106b1f1"
      decimals="-3"
      id="F_299cf219-9cda-4dbc-a95e-df3e648cf7f6"
      unitRef="U_USD">1170000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
