<?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_f09d062e-0b5f-4d03-8306-77e8c2f812fe">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-21</startDate>
            <endDate>2026-07-21</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_be69d370-9d76-4106-b4e7-25b17fed3d58">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_7a619a4d-6b34-4c84-8d7e-23b771327ac3">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_3f154e02-c956-41ed-96eb-8710cbd9137a">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_71ef3b3a-f400-475e-90d0-2827ec4c9f32">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_c46a2ac2-a60c-4282-9cd8-8a50535c3f26">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_dbb07e23-a0f9-4907-8b78-14486bc4067b">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_d1d806a1-1d3a-498e-b5ef-7434e4074e3d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_a002211c-32ca-499b-815c-93fbcf1f8237">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_fcfcc7fe-2672-445b-9f9d-44cc13a4f6f4">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      id="F_2d20db86-8ba1-44a3-a1a7-9f5260b2a6ad">&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;250,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_f09d062e-0b5f-4d03-8306-77e8c2f812fe"
      decimals="-3"
      id="F_71953868-697a-4ad3-9f4d-2b02518240ec"
      unitRef="U_USD">250000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
