<?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_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-27</startDate>
            <endDate>2026-04-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_3719d0b1-7c6b-457e-8bb2-2195ac9ed360">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_9f3189c4-4173-4605-a774-1ca057963300">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_0a1b4747-b843-42ec-98c3-0858f7e9556b">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_58515543-d368-48a6-9fd9-7031fd2be92b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_cfe990b5-ec88-4a45-be75-770ffc8ed65b">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_a0979882-1ce5-4af8-9d17-9ba6cf0051d1">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_6a63446a-09e4-42db-853e-171913cff51f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_30ba1259-1155-410d-a8bf-53e8d5ef04f4">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_558446d3-c375-40cb-bbbe-0459ee3477ef">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      id="F_41518925-82f9-4ef2-9b0e-62a93956547c">&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;600,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_8c626fdf-60c9-4e6b-9b07-bdadbf4ba7df"
      decimals="0"
      id="F_6b2ae360-9bb9-4e65-a728-57e8de79e4e9"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>