<?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_0f22262c-f1ab-4f48-9527-e4d48f7d2091">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_4ae0267a-ba2c-4a58-bfa5-d104661db76d">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_61cd7abd-1796-4a74-8089-50cbc063b998">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_0fe94c94-b47d-4198-ad9e-f457e968be87">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_87789dd8-a1a6-420d-a69d-c7f80495637b">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_b56d76eb-3962-41d5-9fe0-0a030731073a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_168085c8-b524-40ae-9a57-7959f394c74e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_f4276747-83a0-409a-af48-cb45e6bc0ca0">333-284538</ffd:RegnFileNb>
    <dei:EntityRegistrantName
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_0552118d-950f-4653-a339-7c6924914fa6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_53452492-4c2a-4e2e-9be6-c62557eaca1f">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      id="F_73701de3-41b7-4966-991a-8a8477f31be3">&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;14,522,250&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_0f22262c-f1ab-4f48-9527-e4d48f7d2091"
      decimals="0"
      id="F_7b1249af-2854-4dda-a2f5-e6564c77a354"
      unitRef="U_USD">14522250</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
