<?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_6bbe7af0-c194-4f5f-bf43-592162a9df3a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-20</startDate>
            <endDate>2026-05-20</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_646d51fa-267f-445d-a2dc-3d71b8e6cce3">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_56aaa097-246f-433e-83c4-024ecd52812e">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_4bc83512-255a-45fc-99a4-32a3c30fddc6">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_7ff2b2a3-04af-455d-9519-a8b7d82c123e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_63690dcc-7bea-41df-9d71-54b118698712">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_101b8061-1ae4-4789-84db-a3d1b9d21ea6">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_72b7d87b-5881-4c01-80c1-e203f3d8b865">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_df01e682-1ab8-4e9c-97a8-b76eeb1e917c">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_3efaa35e-b7f7-4f76-a80d-36aedd985765">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      id="F_703816ca-d445-46b1-a4be-1ca75a5e48ac">&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;8,260,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_6bbe7af0-c194-4f5f-bf43-592162a9df3a"
      decimals="0"
      id="F_d739d375-2b08-4b29-a2d3-82ca87798cd8"
      unitRef="U_USD">8260000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
