<?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_633c3bd7-0fe2-40d3-ad0b-7a712fe92217">
        <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>
    <ffd:FormTp
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_49617015-21b5-4605-b737-9b2de5aaa670">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_ed5c18d7-ad88-4f08-b28c-2ede0e328cc7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_b2cf18e9-025a-4cb2-8fac-369a5f4487ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_3b990ea5-8ba2-4396-8d52-4474cb1df2f4">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_73b57864-f0a5-4d79-b403-f54ecd6fe171">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_48c3d89a-45ce-4d93-94ca-be284c224cad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_82afb745-a405-4cf1-8e69-5cd0043d5836">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_2f917c41-f4a7-495a-b175-fbf4d4b6222a">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_8e3182e1-0faf-455d-98bb-11b15104d9fe">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      id="F_ee5831e7-29f5-4331-b886-4d86dd881298">&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;440,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_633c3bd7-0fe2-40d3-ad0b-7a712fe92217"
      decimals="0"
      id="F_193c0bd1-df44-41d3-bd27-179aad6d9e88"
      unitRef="U_USD">440000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
