<?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_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-19</startDate>
            <endDate>2026-05-19</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_31c21836-4d11-4564-a399-6ffeef43e623">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_cd719758-9f4c-4f68-8b2b-7a855e42444e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_32ef6108-b35a-44dd-a393-0250118cd47e">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_ab45e8f5-1cb5-4440-80c1-1d7dcd913095">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_5abfcd69-69dd-4c40-938a-b3ed74abedf8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_32c5331a-80fc-4210-92d5-8b87515ee8da">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_681b7fa3-1d48-4c4b-8d70-1dc9032df8bd">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_dd15b18b-b748-429f-9f6c-da104679382a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_31e4f9da-47cf-4fcd-8ed1-17b746387682">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      id="F_f2001ef9-315f-473f-b3a2-a0cd1c9bfe53">&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;1,127,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_3df5776e-bb2c-43e1-9fde-d2a1d09ce54b"
      decimals="0"
      id="F_c352f538-d368-42a9-8cad-3666b0faec0a"
      unitRef="U_USD">1127000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
