<?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_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-16</startDate>
            <endDate>2026-04-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_4816d9a0-e668-4cf4-aefe-b6d87fc6a6c3">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_c9ace472-d330-42f8-ab10-43165da16887">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_7d94fd6e-616f-4d86-9468-884e6bba4603">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_ec35b5fe-1554-401d-a17a-f956f82efa63">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_bf480a21-e82e-4086-af01-b6bf691de180">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_5294418a-8929-434c-ba84-37264259a216">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_02aec58d-3f7d-462c-a6e1-b17e736800cb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_5f902ab4-d81f-4389-b160-177328b5251a">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_7f21a5bc-a901-4c50-afbe-5083d7f91f2a">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      id="F_8f16792c-1936-4bc6-8d34-393e678d4fc1">&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;3,661,100&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_723d4d06-e07e-4cd1-ac26-5e13d46bb6f5"
      decimals="0"
      id="F_b9ddda85-1466-4ed6-b1c8-514847f96213"
      unitRef="U_USD">3661100</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
