<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_c6cb2242-b13d-46f7-8257-68e2676bf139">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_494bc0ce-adb3-4ffc-8417-6707697a6417">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_78e2b055-9b53-4166-b605-ea24b3c3119e">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_b6cf0777-d76d-4ae1-b4e1-8452c51081f2">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_55562816-0fc5-417a-92bb-f8066b33e9c4">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_f4594c78-6114-4e83-a2ac-3642f6dd00ed">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_3e8d0ff4-9cc1-4eab-b14f-3bc4b8e0bac9">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_0d7e203b-3275-4c97-9e8c-216ec99fe197">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_e06b3511-35e5-4035-b29f-e18c659999a0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_91a3d74f-5da1-48d6-a67c-91273b2d5950">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_c6cb2242-b13d-46f7-8257-68e2676bf139"
      id="F_3c22fe16-ed61-47b8-965f-fce89df17ab2">&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;514,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_c6cb2242-b13d-46f7-8257-68e2676bf139"
      decimals="0"
      id="F_da9dd777-a738-4836-97bf-bcfdaffb1ebf"
      unitRef="U_USD">514000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
