<?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_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-09</startDate>
            <endDate>2026-07-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_b84d6d4a-98fb-4263-bf3b-94b9c8235710">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_85cc77d0-215f-4b75-b834-a2a54b98c1f3">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_2b88c81e-3605-4022-9720-171c8732c019">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_b9de4986-27cd-416c-b028-ad588db48542">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_f4437c7c-e217-4985-bfd3-8e15ee474360">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_929220d5-c327-41f7-a387-da0b29fc4c23">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_deb05dc5-fde0-455f-a85d-316f67807ec2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_7fcce9bd-da8e-4476-ab82-754b39522082">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_1604a1f8-a67d-402d-b848-d2283d1c4a75">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      id="F_e7fba14b-8330-485e-95d1-ca8d9c06c1f3">&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,532,330&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_b958d0b2-aa1e-47be-8fe0-45aea55d8d2b"
      decimals="0"
      id="F_ceb6c6c7-dccf-4903-8538-1938a2d0601f"
      unitRef="U_USD">8532330</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
