<?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_a104d841-1656-42a8-b46e-710f51d0c624">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-27</startDate>
            <endDate>2026-07-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_b38f1771-cea9-4943-ac52-9d83dad02759">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_62ae83af-93d4-4a85-af36-7866b4b4c8d1">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_a8b71e35-e75c-48ff-80e2-1190c6cb8f44">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_699b5bd0-015a-4a7d-80d3-674dcf7fd85f">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_0ef07eaa-3d42-4940-84fd-c3235ae708de">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_2749b3dc-3f40-48fa-8f1c-c42af450a1bf">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_57ab9090-b6cf-44c0-b64c-0465c0da7264">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_eb8d949f-ea2c-40a1-9fa9-4345b3edcca0">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_a94978c1-4d0f-440a-ab6d-73601cb1b67b">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_a104d841-1656-42a8-b46e-710f51d0c624"
      id="F_748bd0b6-8eb6-4ab3-a469-ab5ac4a90eca">&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;665,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_a104d841-1656-42a8-b46e-710f51d0c624"
      decimals="-3"
      id="F_1d59af32-61b8-4f62-a217-2a75fcaa8f84"
      unitRef="U_USD">665000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
