<?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_e10ef471-0c76-4b7f-a639-00981fb43d49">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-04</startDate>
            <endDate>2026-06-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_bd71e0f0-767a-42d5-841d-b7165fa7f10d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_bf8731ff-bbc6-4d94-97c9-4d3d4d76cdd5">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_70ce93c3-2755-41f0-8855-6e7fd440953b">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_4302d9ef-dee2-4445-b1f2-eb4e29be39c5">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_8738a06e-dbbf-4db2-8520-cbdc4d6e1174">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_537a27b7-bd92-4e05-b0f6-225152fc103a">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_ffd28ce7-f3c8-4c73-a124-e88290ddc19f">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_7256c493-8155-4781-8f18-c46bf44e1197">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_5cfc2f6e-73d3-48fc-8bc5-a8fb9357171a">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_e10ef471-0c76-4b7f-a639-00981fb43d49"
      id="F_fcb3e9f9-3446-46e1-b599-c6e3f42b5114">&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,340,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_e10ef471-0c76-4b7f-a639-00981fb43d49"
      decimals="-3"
      id="F_19e48656-ddc4-4f18-b0e0-e20b90e0fe91"
      unitRef="U_USD">2340000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
